How to monitor delayed_job with monit

后端 未结 13 847
醉酒成梦
醉酒成梦 2020-12-02 04:11

Are there any examples on the web of how to monitor delayed_job with Monit?

Everything I can find uses God, but I refuse to use God since long running processes in

13条回答
  •  盖世英雄少女心
    2020-12-02 04:25

    For Rails 3, you may need set HOME env to make compass work properly, and below config works for me:

    check process delayed_job
      with pidfile /home/user/app/shared/pids/delayed_job.pid
      start program = "/bin/sh -c 'cd /home/user/app/current; HOME=/home/user RAILS_ENV=production script/delayed_job start'"
      stop program  = "/bin/sh -c 'cd /home/user/app/current; HOME=/home/user RAILS_ENV=production script/delayed_job stop'"
    

提交回复
热议问题