On Thu, 4 May 2000, Peter Rundle wrote:
>
> > > x:5:respawn:/path/to/kdm -nodaemon
> >
> > <rant>
> > That's one of the weird things that annoyed me about RedHat.
> > Why is gdm done seperately in inittab, while every other daemon is in
> > its own /etc/rc.d/init.d/whatever script?
>
> one word "RESPAWN", if the process dies init will respawn it without
> changing state. /etc/rc.d entries only get run when you change to that
> state.
Dan Bernstein has a package called daemontools that also monitors
processes and re-starts them if they die. It also allows you to
specify whether a process should be normally started or not, to stop
the process without restarting it, send it signals, etc
http://cr.yp.to/daemontools.html
I use it at home to supervise qmail, qmail-smtpd and my various ppp
connections (if my ppp link goes down it is automatically redialled
without any extra work involved).
Regards
Peter
----------
Peter Samuel [EMAIL PROTECTED]
Technical Consultant or at present:
eServ. Pty Ltd [EMAIL PROTECTED]
Phone: +61 2 9206 3410 Fax: +61 2 9281 1301
"If you kill all your unhappy customers, you'll only have happy ones left"
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text