我正在使用监控来监控我的Web服务。一切正常,直到monit进程停止。有monit的日志文件的一部分 monit log file 具有由我添加的monit配置系统(我运行Ubuntu 14.04),它看起来像这样监测的monit: # This is an upstart script to keep monit running.
# To install disable the ol
基本上,monit在文件“product_id”准备就绪时启动进程“CAD”。我的配置如下: check file product_id with path /etc/platform/product_id
if does not exist then alert
check process cad with pidfile /var/run/cad.pid
depends
我想要做的monit的是这样的: check process foo with pidfile /var/run/foo/foo.pid
start program = "/etc/init.d/foo start" with timeout 30 seconds
stop program = "/etc/init.d/foo stop"
if does not e