Created
June 22, 2015 23:28
-
-
Save bcomnes/ae8ca86573bb7bb9905a to your computer and use it in GitHub Desktop.
init.d exaxmple
This file contains 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 "ipfs daemon" | |
start on (local-filesystems and net-device-up IFACE!=lo) | |
stop on runlevel [!2345] | |
limit nofile 524288 1048576 | |
limit nproc 524288 1048576 | |
chdir /home/jbenet | |
exec start-stop-daemon --start --chuid jbenet --exec /home/jbenet/go/bin/ipfs daemon | |
respawn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment