Created
September 15, 2010 17:20
-
-
Save seamusabshere/581083 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
# http://jetpackweb.com/blog/2010/05/19/making-monit-delayed_job-and-bundler-play-nice-together/ | |
check process my_app_delayed_job_1 | |
with pidfile /data/my_app/shared/pids/delayed_job.pid | |
start program = "/usr/bin/env HOME=/home/deploy PATH=/usr/bin:$PATH RAILS_ENV=production /etc/init.d/delayed_job.sh start" as uid deploy and gid deploy | |
stop program = "/usr/bin/env HOME=/home/deploy PATH=/usr/bin:$PATH RAILS_ENV=production /etc/init.d/delayed_job.sh stop" as uid deploy and gid deploy with timeout 90 seconds | |
if totalmem is greater than 256 MB for 10 cycles then restart | |
group my_app_delayed_job |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for /etc/monit.d/delayed_job.monitrc