You can use Monit to restart processes that are dead. I contributed a monit
file for doing just that. Here it is again (to save you from searching):
check process funcd with pidfile /var/run/funcd.pid
start program = "/etc/init.d/funcd start"
stop program = "/etc/init.d/funcd stop"
if failed host 127.0.0.1 port 51234 type tcp then restart
if 5 restarts within 5 cycles then timeout
1)
Place the contents in /etc/monit.d/funcd.
2)
Install monit on each of your minions (even better, use func to run the yumcmd
to do it for you).
3)
Distribute the same /etc/monitrc file to each minion (func --copyfile ...)
4)
Distribute /etc/monit.d/funcd to each of the minions (func --copyfile ...).
5)
Chkconfig monit to start at boot (func cmd ...)
6)
start Monit (func cmd ...)
7) test things by stopping a remote funcd process... you should get an email
within a minute that the funcd process was restarted by Monit.
_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list