Subject: Re: Suggested enhancement to rc.subr for "master daemons"
To: Ed Ravin <eravin@panix.com>
From: John Hawkinson <jhawk@MIT.EDU>
List: tech-userlevel
Date: 12/17/2004 15:59:30
Ed Ravin <eravin@panix.com> wrote on Fri, 17 Dec 2004
at 03:50:11 -0500 in <20041217085011.GA10141@panix.com>:

> will kill all the running processes unless we go to great lengths
> to write our own stop function.  It occured to someone here that
> we could distinguish the master daemon by using ps output to see
> if it's parent pid is 1, i.e. init, and it occurred to me that
> we might want this feature for more than one daemon.

The problem with this is when there are children that dissociate
themselves from a parent (e.g. double-forking) and reparented to init,
intentionally.

So I'm not sure if this is a great general approach. (Maybe my case
is sufficiently rare...)

--jhawk