Created
February 19, 2015 00:23
-
-
Save brianmed/426cde5879b9502f2a05 to your computer and use it in GitHub Desktop.
Upstart config
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
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