Subject: Re: rc.subr don't check rcvar YES except at boot/shutdown
To: Jeremy C. Reed <email@example.com>
From: Luke Mewburn <lukem@NetBSD.org>
Date: 02/13/2007 10:26:05
Content-Type: text/plain; charset=us-ascii
On Sat, Feb 10, 2007 at 11:20:10AM -0600, Jeremy C. Reed wrote:
| As discussed in December and January, here are a few patches (including=
| for man page) so rc.subr doesn't check rcvar for YES except at=20
| boot/shutdown. (This was the "admin script for ipfilter" thread. Note t=
| this patch does not add any "enable" or "disable" option and this doesn=
| add a new rcadmin(8) command.)
| This means the default usage of rc.subr changes. (This adds an "only"=
| As an example, this means that running "status" of a disabled rc.d scri=
| will give output.
| This also means that the admin can run "start" and "stop" on some=20
| arbritary rc.d script and it will attempt to do what they expect.
| Note if you don't update your rc and rc.shutdown accordingly, it will=
| really attempt to start and stop all rc.d services.
| Also using "one" prefix now makes no sense.
| I have only tested this a little. Your feedback is appreciated.
| By the way, I have taught our rc.d usage in several FreeBSD and NetBSD=
| admin classes and I use our rc.subr system in my Linux distribution.=20
| Having to preconfigure or use the "force" or newer "one" prefix isn't=
| consistent with what many admins, including myself, expect.
I'm ambivalent about the proposed user-interface change.
I understand the argument about the behaviour being closer to what
(Linux) sysadmins expect, but don't forget that such Linux systems
usually don't install the rc.d script for an uninstalled service,
and they usually automatically start and enable a service upon
(This difference of behaviour with Linux (not that there was any
reasonable consistent standard in UNIX when we developed rc.d(8))
is why the directory is /etc/rc.d and not /etc/init.d.)
Having the ability to control whether the existing NetBSD practice
or your proposed practice (via an rc.conf(5) var?) may be useful.
Have you considered discussing this with the FreeBSD folks, since
they use a derivative of rc.d(8) in their system?
In any case, _if_ this change is performed, it should be noted in
an obvious place as a "Behaviour Change" so that people don't get
bitten as easily. (I.e, don't just commit changes to rc.subr and
rc.conf.5 and note the change in para 5591 of the release notes :-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)
-----END PGP SIGNATURE-----