Skip to content

Instantly share code, notes, and snippets.

@brianmed
Created February 19, 2015 00:23
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 brianmed/426cde5879b9502f2a05 to your computer and use it in GitHub Desktop.
Save brianmed/426cde5879b9502f2a05 to your computer and use it in GitHub Desktop.
Upstart config
start on runlevel 3
# Start delayed_job via the daemon control script.
exec su -c "cd /opt/cool.com/docroot/cool && /opt/perl script/cool minion worker" bpm
# Restart the process if it dies with a signal
# or exit code not given by the 'normal exit' stanza.
respawn
post-stop exec sleep 3
# Give up if restart occurs 10 times in 90 seconds.
respawn limit 10 90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment