Created
September 27, 2011 09:30
-
-
Save joel/1244682 to your computer and use it in GitHub Desktop.
Monit Resque by app
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 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