| # 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AnrDaemon commentedJul 22, 2016