if my delayed_job server broke than monit will automatically restart the delayed_job server again or not?
A:
You have to tell monit to do this... I use the following config:
check process delayed_job with pidfile /srv/rails/restorm_com/current/tmp/pids/delayed_job.pid
start program = "/bin/su -c 'RAILS_ENV=production /srv/rails/restorm_com/current/script/delayed_job start' rails"
stop program = "/bin/su -c 'RAILS_ENV=production /srv/rails/restorm_com/current/script/delayed_job stop' rails"
if cpu > 80% for 3 cycles then alert
if loadavg(5min) greater than 2 for 3 cycles then alert
severin
2010-06-22 19:19:05
how to check that monit has started a delayed_job or not?
krunal shah
2010-06-22 21:51:00
"monit status" shows you a summary of all monit-watched stuff... There you'll see if delayed job is started or not
severin
2010-06-23 08:24:48