Dirk H. Schulz
2009-Jul-07 10:17 UTC
[CentOS] Init checking for processes that are configured to "respawn"
Hi folks, I have a sophisticated question for which I can't find any hints on the web: If you configure init (via /etc/inittab) to respawn processes (like the getty processes) when they exit - how often does init check for the existence of such a process? Does it check actively at all or does it rely on some kind of inter process communication? I am not a programmer, so maybe the second question is completely nonsense. Any hint or help is appreciated. Dirk
Michael Kralka
2009-Jul-07 11:44 UTC
[CentOS] Init checking for processes that are configured to "respawn"
On 2009-07-07, at 6:17 AM, "Dirk H. Schulz" <dirk.schulz at kinzesberg.de> wrote:> Hi folks, > > I have a sophisticated question for which I can't find any hints on > the > web: > > If you configure init (via /etc/inittab) to respawn processes (like > the > getty processes) when they exit - how often does init check for the > existence of such a process? Does it check actively at all or does it > rely on some kind of inter process communication?I'd imagine it uses wait (man 2 wait) and/or waits for a SIGCHLD to be sent. The latter sent to it whenever a child process exits. In either case, the spawned process does not need to be aware of how knit works under the hood. HTH Michael
Seemingly Similar Threads
- what''s wrong with my pv domU console? INIT: Id "1" respawning too fast: disabled for 5 minutes
- Unable to xm console in a running domU
- [PATCH 1/2] builder/templates/debian.preseed: enable serial console
- Xen Virtual Console xvc (Was: Re: Pardon me for possibly dumb question but....)
- error message: INIT: Id "s0" respawning toofast:disable for 5 minutes