Subject: Re: High Avaliability Processes
To: None <tech-kern@netbsd.org>
From: Bernd Sieker <bsieker@freenet.de>
List: tech-kern
Date: 07/22/2002 11:55:48
On 22.07.02, 10:19:29, Johan Brodin wrote:
> Hi!
>
> I'm new to this list and I want to ask a rather simple question. Does
> NetBSD contain a program (preferably a kernel process) that can see if
> another process (user defined) terminates and then restart this process?
> Or will I have to use an "external" program for this?
NetBSD (like other Unices) does that for the getty processes on on the
terminals, as defined in /etc/ttys. I have successfully used this
method to start the Xserver automatically and indirectly query the
xdm, so that I get a host chooser instead of the login widget.
The line in /etc/ttys looks like this:
ttyE4 "/usr/X11R6/bin/X -terminate -indirect boa.home.loc vt05" unknown on
It could probably be used to start (and restart if they terminate)
other processes as well, although I have never tried that. Maybe you
can use one of the pseudo terminals for that.
If you have changed the ttys file, do "kill -HUP 1" to tell init to
re-read the file and, if neccessary, start the programs.
>
> Grateful for a quick answer!
>
> Thanks!
> /Johan
>
> -------------------------------------------------------
> Johan Brodin 031-7084505 0703-411829
> jobro@mensa.se ICQ:188 758 72 SM6WKK
> http://www.fua.nu/jobro
> -------------------------------------------------------
> AD UTRUMQUE PARATUS!
> -------------------------------------------------------
>
>
>
--
Bernd Sieker
NetBSD: My other computer also runs NetBSD.
-- David Brownlee