Skip to content

Instantly share code, notes, and snippets.

@brianmed
Created March 29, 2016 04:13
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/d19395836761614d3a44 to your computer and use it in GitHub Desktop.
Save brianmed/d19395836761614d3a44 to your computer and use it in GitHub Desktop.
Minion upstart
# Start when system enters runlevel 2 (multi-user mode).
start on runlevel 3
# Start delayed_job via the daemon control script.
exec su -c "cd /opt/callsabound.com/docroot/calls_abound && /opt/perl script/calls_abound minion worker" root
# Restart the process if it dies with a signal
# or exit code not given by the 'normal exit' stanza.
respawn
pre-start exec sleep 4
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