daemon monitoring

Christos Ricudis ricudis at itc.auth.gr
Fri Nov 16 09:47:59 EET 2007


Giorgos Keramidas wrote:
> On 2007-11-16 01:00, Thanasis <thanasis at asyr.hopto.org> wrote:
>   
>> 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
>>     
>
> Μπορείς να γεμίσεις το δίσκο σου με άχρηστα syslog messages και με πιο
> απλό τρόπο:
>
> 	while true ; do \
> 	    logger 'named: cannot bind port 53' ; \
> 	    sleep 100 ; \
> 	done

syslogd: last message repeated 8534 times.

ok, ok, sas exei peiraksei h Paraskeyh, to katalabainw...




More information about the Linux-greek-users mailing list