Skip to content

Instantly share code, notes, and snippets.

@tomvachon
Created December 27, 2013 14:07
Show Gist options
  • Save tomvachon/8147336 to your computer and use it in GitHub Desktop.
Save tomvachon/8147336 to your computer and use it in GitHub Desktop.
Upstart example
start on runlevel [2345]
stop on runlevel [06]
#should i reboot it for you if it crashes?
respawn
# reboot it 4 times wait 5 seconds
respawn limit 4 5
#If your proc forks uncomment
#expect fork
#if your proc double forks uncomment
#expect daemon
exec /run/your/daemon here -justlike the -command line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment