Forked from jamesarosen/delayed_job.monitrc.example
Created
November 23, 2011 07:33
-
-
Save johankok/1388114 to your computer and use it in GitHub Desktop.
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
# an example Monit configuration file for delayed_job | |
# | |
# 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 = "/usr/bin/env RAILS_ENV={environment} /var/www/apps/{app_name}/current/script/delayed_job start" | |
stop program = "/usr/bin/env RAILS_ENV={environment} /var/www/apps/{app_name}/current/script/delayed_job stop" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment