Skip to content

Instantly share code, notes, and snippets.

@joel
Created September 27, 2011 09:30
Show Gist options
  • Save joel/1244682 to your computer and use it in GitHub Desktop.
Save joel/1244682 to your computer and use it in GitHub Desktop.
Monit Resque by app
Check process resque_<app_name> with pidfile /var/www/<app_name>_production/shared/pids/resque.pid
start program = "/bin/sh /usr/local/bin/resque_<app_name>-start" as uid capistrano and gid users
stop program = "/bin/sh /usr/local/bin/resque_<app_name>-stop" as uid capistrano and gid users
group resque
if 5 restarts within 5 cycles then timeout
alert contact@world_company.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment