Created
September 7, 2015 09:46
-
-
Save goodwill/b8ee3d8c4093aa0eb148 to your computer and use it in GitHub Desktop.
Proper way to start digibyted in upstart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "digibyted" | |
start on filesystem | |
stop on runlevel [!2345] | |
oom score -500 | |
expect fork | |
respawn | |
respawn limit 10 60 # 10 times in 60 seconds | |
script | |
user=root | |
home=/$user | |
cmd=/var/digibyte/digibyted | |
daemon_opts="-conf=/var/digibyte/digibyte.conf -datadir=/var/digibyte/data" | |
exec $cmd $daemon_opts | |
end script | |
pre-stop script | |
exec /var/digibyte/digibyte-cli $daemon_opts stop | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment