Skip to content

Commit

Permalink
Added sample monit script
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Sep 6, 2009
1 parent f5eb9dc commit 03db233
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions contrib/delayed_job.monitrc
@@ -0,0 +1,14 @@
# an example Monit configuration file for delayed_job
# See: http://stackoverflow.com/questions/1226302/how-to-monitor-delayedjob-with-monit/1285611
#
# To use:
# 1. copy to /var/www/apps/{app_name}/shared/delayed_job.monitrc
# 2. replace {app_name} and {environment} as appropriate
# 3. add this to your /etc/monit/monitrc
#
# include /var/www/apps/{app_name}/shared/delayed_job.monitrc

check process delayed_job
with pidfile /var/www/apps/{app_name}/shared/pids/delayed_job.pid
start program = "/var/www/apps/{app_name}/current/script/delayed_job -e {environment} start"
stop program = "/var/www/apps/{app_name}/current/script/delayed_job -e {environment} stop"

0 comments on commit 03db233

Please sign in to comment.