我正在使用監控來監控我的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