Subject: Re: /usr/pkg/etc/rc.d/* evaluated before filesystem checks
To: None <netbsd-users@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-users
Date: 03/27/2004 12:08:25
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 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).

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.

   Jeremy C. Reed
   http://bsd.reedmedia.net/