Skip to content

Instantly share code, notes, and snippets.

@johndel
Created October 3, 2014 15:01
Show Gist options
  • Save johndel/2032984d638ffdf9c9ae to your computer and use it in GitHub Desktop.
Save johndel/2032984d638ffdf9c9ae to your computer and use it in GitHub Desktop.
sidekiq conf for monit
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