0
我正在使用監控來監控我的Web服務。一切正常,直到monit進程停止。有monit的日誌文件的一部分在系統殺死後自動重啓監控
具有由我添加的monit配置系統(我運行Ubuntu 14.04),它看起來像這樣監測的monit:
# This is an upstart script to keep monit running.
# To install disable the old way of doing things:
#
# /etc/init.d/monit stop && update-rc.d -f monit remove
#
# then put this script here:
#
# /etc/init/monit.conf
#
# and reload upstart configuration:
#
# initctl reload-configuration
#
# You can manually start and stop monit like this:
#
# start monit
# stop monit
#
description "Monit service manager"
limit core unlimited unlimited
start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]
expect daemon
respawn
exec /usr/bin/monit -c /etc/monitrc
pre-stop exec /usr/bin/monit -c /etc/monitrc quit
當我重新啓動系統監視未運行。
sudo monit status
$ monit: Status not available -- the monit daemon is not running
如何配置新貴以保持監控運行?