views:

43

answers:

1

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
how to check that monit has started a delayed_job or not?
krunal shah
"monit status" shows you a summary of all monit-watched stuff... There you'll see if delayed job is started or not
severin