Subject: Re: Suggested enhancement to rc.subr for "master daemons"
To: Ed Ravin <eravin@panix.com>
From: Luke Mewburn <lukem@NetBSD.org>
List: tech-userlevel
Date: 12/18/2004 14:38:13
--0/kgSOzhNoDC5T3a
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Dec 17, 2004 at 03:50:11AM -0500, Ed Ravin wrote:
  | So below is a proposed patch to /etc/rc.subr that adds a new option,
  | "master_only" which should cause rc.subr to only report status or kill
  | a process if its parent pid is 1 when someone puts "master_only=3Dtrue"
  | into the rc.d script.
  |=20
  | Will this be useful for others, and if so, is it worth putting into Net=
BSD?

My initial reaction is that this is a special case hack for one daemon,
and the solution is better off as a custom start_cmd and stop_cmd in
that daemon's particular rc.d script.

--0/kgSOzhNoDC5T3a
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iD8DBQFBw6YlpBhtmn8zJHIRAi+xAJ9K/mvpkK47jwVYu4ZGfjqNoTwQTwCfeREZ
LQiJ2l+jdQXEF4jo0lO3OuU=
=0xPY
-----END PGP SIGNATURE-----

--0/kgSOzhNoDC5T3a--