Subject: Re: /usr/pkg/etc/rc.d/*
To: NetBSD-current Discussion List <current-users@netbsd.org>
From: Chuck Yerkes <chuck+nbsd@2003.snew.com>
List: current-users
Date: 03/17/2003 12:35:57
Quoting Greg A. Woods (woods@weird.com):
> [ On Sunday, March 16, 2003 at 14:38:35 (-0500), Michael G. Schabert wrote: ]
> > Subject: Re: /usr/pkg/etc/rc.d/*
...
> > 1) anything in /usr/pkg/etc/rc.d/ should be copied to /etc/rc.d/
>
> And that's it in a nutshell... ;-)
Oh good. There's nothing I want less than to mix system-shipped
stuff indiscrimately with package and local startup scripts.
We might as well install pkgs into /usr/bin/ and /usr/sbin/.
The "right answer" might simply be to have /etc/rc.local.d/ (or
whatever name you like) and change the rcorder call to include
that as well:
Was:
files=$(rcorder -s nostart ${rc_rcorder_flags} /etc/rc.d/*)
Could be:
files=$(rcorder -s nostart ${rc_rcorder_flags} /etc/rc.d/* /etc/rc.local.d/*)
(see also /etc/rc.shutdown)