Created
October 3, 2014 14:59
-
-
Save johndel/e5f6cb30da724396b7c3 to your computer and use it in GitHub Desktop.
unicorn conf for monit
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
check process your_project_unicorn | |
with pidfile /your_project_unicorn/current/tmp/pids/unicorn.pid | |
start program = "/bin/bash -l -c 'cd /your_project_unicorn/current && bundle exec unicorn -E staging -c /your_project_unicorn/current/config/unicorn.rb -D'" | |
stop program = "/bin/bash -l -c kill -QUIT `cat /your_project_unicorn/current/tmp/pids/unicorn.pid` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment