Skip to content

Commit

Permalink
Developing
Browse files Browse the repository at this point in the history
Added extra conf
  • Loading branch information
michelem09 committed Oct 14, 2016
1 parent a6461b9 commit e01ecd3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions extra/minera-client.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
description "Minera Client"

# CHANGE THIS!!! #
env MINERA_ID=zTkGRKl5DHq18NdT9jNyk/ujZAH7clk+K8r7ZAOj6Kk=

start on runlevel [2345]
stop on runlevel [016]

respawn

setuid minera
chdir /opt/minera-client
exec node client.js >> client.log 2>&1
6 changes: 3 additions & 3 deletions extra/minera-client.service
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[Service]
ExecStart=/usr/bin/node /opt/minera-client/client.js
ExecStart=/bin/sh -c '/usr/bin/node /opt/minera-client/client.js 2>&1 >> /opt/minera-client/client.log'
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=minera-client
User=minera
Group=minera

# CHANGE THIS!!! #
Environment=MINERA_ID=zTkGRKl5DHq18NdT9jNyk/ujZAH7clk+K8r7ZAOj6Kk=

[Install]
Expand Down

0 comments on commit e01ecd3

Please sign in to comment.