Hi,

On Wed, 30 May 2001, bob wrote:

> RedHat 6.1 server.   Running  as DNS server.      Named stops randomly.
>
> What is the best way to chk if named is running and to restart named if it
> is stopped?

Do a 'ps auxw|grep named'? If it's not running,
do '/etc/rc.d/init.d/named start'.

I wrote a deamon once (in perl, do THAT in PHP! (; ) that goes around
checking for other daemons and restarts them if they are down. Course it
can't check for itself, so you also run it from cron just in case...
silly, isn't it.


-Yaron

--