Subject: Re: /usr/pkg/etc/rc.d/* evaluated before filesystem checks
To: None <netbsd-users@NetBSD.org>
From: Hanspeter Roth <hampi@rootshell.be>
List: netbsd-users
Date: 03/28/2004 12:40:29
On Mar 27 at 12:08, Jeremy C. Reed spoke:
> On Sat, 27 Mar 2004, Hanspeter Roth wrote:
>
> > my rc_rcorder_flags="/root/etc/rc.d/* /usr/pkg/etc/rc.d/*".
> > While booting after the green messages there appears the date and
> > then comes a message
> >
> > rcorder: could not open /usr/pkg/etc/rc.d*: No such file or directory
>
> > Is there an official means to make rc_rcorder_flags be evaluated
> > after /usr is mounted?
>
> Yes. If it is on a different file system, then copy the rc.d files to your
> /etc/rc.d/ directory.
>
> This can be automated with pkgsrc by setting
> PKG_RCD_SCRIPTS=YES
This has no effect. Also there is no PKG_RCD_SCRIPTS in
/etc/defaults/rc.conf nor in /etc/rc.
> This can also be set in the environment when using binary packages.
>
> This will automatically install to RCD_SCRIPTS_DIR (which is /etc/rc.d by
> default).
Should PKG_RCD_SCRIPTS be set while installing a package?
>
> The directory name /usr/pkg/etc/rc.d/ is confusing. It is not the location
> of the rc.d scripts. It is the location of the example (but working)
> example rc.d scripts. On many of my systems, I use
> RCD_SCRIPTS_EXAMPLEDIR=${LOCALBASE}/share/examples/rc.d which makes more
> sense.
Shouldn't examples of packages configuration files be somewhere
below /usr/pkg/share/examples?
-Hanspeter