Skip to content

Instantly share code, notes, and snippets.

@seamusabshere
Created September 15, 2010 17:20
Show Gist options
  • Save seamusabshere/581083 to your computer and use it in GitHub Desktop.
Save seamusabshere/581083 to your computer and use it in GitHub Desktop.
# 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
@seamusabshere
Copy link
Author

for /etc/monit.d/delayed_job.monitrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment