[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit] monit cannot start scripts: "failed to start"
From: |
Alexander Sviridov |
Subject: |
[monit] monit cannot start scripts: "failed to start" |
Date: |
Fri, 11 Jun 2010 21:00:44 +0400 |
Hello!
I'm setting up monit to watch on few Ruby scripts, and it cannot start
them:
Jun 11 20:54:29 monit[23514]: 'ar_sendmail' process is not running
Jun 11 20:54:29 monit[23514]: 'ar_sendmail' trying to restart
Jun 11 20:54:29 monit[23514]: 'ar_sendmail' start: /usr/local/bin/ruby
Jun 11 20:54:59 monit[23514]: 'ar_sendmail' failed to start
Jun 11 20:54:59 monit[23514]: 'delayed_job' process is not running
Jun 11 20:54:59 monit[23514]: 'delayed_job' trying to restart
Jun 11 20:54:59 monit[23514]: 'delayed_job' start: /usr/bin/env
Jun 11 20:56:39 monit[23514]: 'delayed_job' failed to start
config file:
check process ar_sendmail with pidfile "/sites/mysite/shared/log/
ar_sendmail.pid"
start program = "/usr/local/bin/ruby /usr/local/bin/ar_sendmail -d
-b 100 --max-age 0 --delay 60 -e production --chdir /sites/mysite/
current start"
with timeout 30 seconds
stop program = "/usr/local/bin/ar_sendmail -e production --chdir /
sites/gamer.ru/current stop"
if 5 restarts within 5 cycles then alert
check process delayed_job with pidfile "/sites/mysite/shared/pids/
delayed_job.pid"
start program = "/usr/bin/env RAILS_ENV=production /sites/mysite/
current/script/delayed_job start"
with timeout 100 seconds
stop program = "/sites/mysite/current/script/delayed_job stop"
if 5 restarts within 5 cycles then alert
Is it possible to know why scripts failed to start? I like to see
output...
Thank you!
- [monit] monit cannot start scripts: "failed to start",
Alexander Sviridov <=