5

using monit to restart custom daemon

view full story
linux-howto

http://serverfault.com – I wrote a php daemon using system daemon pear class. How do I use monit to restart it when it fails? I have the following code in my monit config file: 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 where IPADDRESS is my server's public ip address, but the above not working at all. (HowTos)