daemon monitoring

Thanasis thanasis at asyr.hopto.org
Fri Nov 16 01:00:05 EET 2007


while true; do ps -ef |grep pro[c]ess > /dev/null && sleep 100 || <run
process> ; done
ð÷
 while true; do ps -ef |grep na[m]ed > /dev/null && sleep 100 ||
/usr/sbin/named -u named -n 1; done
Þ
while true; do ps -ef |grep na[m]ed > /dev/null && sleep 100 ||
/etc/init.d/named restart; done






More information about the Linux-greek-users mailing list