Skip to content

Instantly share code, notes, and snippets.

@bcomnes
Created June 22, 2015 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcomnes/ae8ca86573bb7bb9905a to your computer and use it in GitHub Desktop.
Save bcomnes/ae8ca86573bb7bb9905a to your computer and use it in GitHub Desktop.
init.d exaxmple
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