Install the daemontools package from Dan Bernstein.
http://cr.yp.to/daemontools.html


They offer an excellent way to make sure processes never die.  

-----Original Message-----
From: Nate Carlson [mailto:natecars at real-time.com] 
Sent: Thursday, May 31, 2001 4:33 PM
To: tclug-list at mn-linux.org
Subject: Re: [TCLUG] best way to chk if named is running and restart if not

On Thu, 31 May 2001, Callum Lerwick 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?
>
> I've been considering writing a script to do this... I figure you could
> just take advantage of sysv init, go through /etc/init.d/, run each
> script with 'status', if its running good, if its dead start it...
>
> But Debian apparently doesn't implement 'status'. Blah. And seems to me,
> the ultimate thing would be to run everything from init, since it
> already has logic for keeping processes running, without flooding the
> system with spawns...

or just use netsaint to check it, and rig up an external script to have it
start.

-- 
Nate Carlson <natecars at real-time.com>   | Phone : (952)943-8700
http://www.real-time.com                | Fax   : (952)943-8500


_______________________________________________
tclug-list mailing list
tclug-list at mn-linux.org
https://mailman.mn-linux.org/mailman/listinfo/tclug-list