0
我使用System_Daemon pear软件包创建了守护进程。如何在失败时使用Monit重启守护程序。使用Monit监视自定义守护进程
我有以下的代码,打算在monit的配置GILE的地方:
check process merge with pidfile /var/www/merge/merge.pid
group 1000
start program = "/etc/init.d/merge start"
stop program = "/etc/init.d/merge stop"
if failed host IPADDRESS port 80
then restart
if 5 restarts within 5 cycles then timeout
这是正确的方式来监视自定义守护进程?