Monit进程无法启动

时间:2014-01-14 23:09:05

标签: ruby-on-rails monit

我正在尝试使用Monit来观看Thin Rails应用程序服务器进程。这是我的Monit配置:

check process thin-3000
  with pidfile /var/www/apps/myapp/shared/pids/thin.3000.pid
  start program = "/bin/su - deploy -c 'thin start -C /etc/thin/myapp.yml -o 3000'"
  stop program = "/bin/su - deploy -c 'thin stop -C /etc/thin/myapp.yml -o 3000'"
  if failed port 3000 then restart
  group thin

这实际上有效。如果我终止瘦服务器进程,Monit会忠实地重启它。但是,如果我观看Monit日志,它会一直反复输出以下内容:

[UTC Jan 14 23:01:04] error    : 'thin-3000' process is not running
[UTC Jan 14 23:01:04] info     : 'thin-3000' trying to restart
[UTC Jan 14 23:01:04] info     : 'thin-3000' start: /bin/su
[UTC Jan 14 23:01:34] error    : 'thin-3000' failed to start

它看起来像用于检查进程是否正在运行的任何机制都无法正常工作。你知道我可能做错了吗?

0 个答案:

没有答案