基本上,如果iptables停止了,我希望它能在不久之后自动启动。我想把这个应用于6-10项服务.
发布于 2010-10-21 18:57:30
我们过去使用过莫尼特。它的语法如下所示:
check process sshd with pidfile /var/run/sshd.pid start program "/etc/init.d/ssh start" stop program "/etc/init.d/ssh stop" if failed port 22 protocol ssh then restart if 5 restarts within 5 cycles then timeout
现在,出于各种各样的原因,我们使用CFengine的进程功能来重新启动/终止进程,但是您需要有一个现有的CFengine基础设施。
发布于 2010-10-21 18:29:51
我认为您正在寻找守护进程工具(http://cr.yp.to/daemontools.html -“监督”命令)或runit (http://smarden.org/runit/)。
https://serverfault.com/questions/193533
相似问题