Created
October 3, 2014 15:01
-
-
Save johndel/2032984d638ffdf9c9ae to your computer and use it in GitHub Desktop.
sidekiq 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_sidekiq | |
with pidfile /your_project/current/tmp/pids/sidekiq.pid | |
start program = "/bin/bash -l -c 'cd /your_project/current && bundle exec sidekiq -e staging -C config/sidekiq.yml -d -P tmp/pids/sidekiq.pid -L log/sidekiq.log'" | |
stop program = "/bin/bash -l -c kill -s TERM `cat /your_project/current/tmp/pids/sidekiq.pid`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment