-
-
Save jesiegel1/2ba88ccff85001f3be57c2e2debca893 to your computer and use it in GitHub Desktop.
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
# god upstart service | |
description "God process monitoring" | |
# When to start and stop the service | |
start on runlevel [2345] | |
stop on runlevel [016] | |
# Automatically restart process if crashed | |
kill timeout 20 | |
respawn | |
#expect fork | |
# Start the process | |
#script | |
# export RAILS_ENV=staging | |
# cd /home/root/apps/my_app/current | |
exec echo "cd /home/root/apps/my_app/current && RAILS_ENV=staging bundle exec god -c config/app.god -D --log log/god.log" | |
#end script |
AnrDaemon
commented
Jul 22, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment