Subject: Re: pkg/etc/rc.d and /etc/rc.donf (Was: Re: BIND DoS and remote
To: None <>
From: Randy Beaudreault <>
List: tech-pkg
Date: 11/13/2002 15:29:16
>  >> OK, I just noticed that pkg_add added "named9" in /usr/pkg/etc/rc.d.
>>>  I could copy that to /etc/rc.d, but then how do I get named9 to
>>>  launch? Do I simply say "named=NO" and "named9=YES" in /etc/rc.conf?
>>This came up in tech-security ...
>>Now i've wondering why the bootup-scripts doesn't search this directory
>>just like /etc/rc.d/ too?
>>It would be much more nicer than move the scripts from /usr/pkg/etc/rc.d
>>to /etc/rc.d everytime i install a new package or even link it with
>>/etc/rc.d. (i normally do so)
>/etc/rc does this:
>	files=$(rcorder -s nostart ${rc_rcorder_flags} /etc/rc.d/*)
>and you could add a reference to /usr/pkg/etc/rc.d/* there if you
>like, but if /usr isn't mounted when init starts rc, those programs
>won't start.  this is why it's recommended that you copy the scripts.

/usr needs to be mounted to run anything in /usr/pkg/bin or sbin 
anyways.  Why add the hassle of mv'ing or cp'ing the rcorder scripts 
into /etc/rc?

OS X - UNIX for the rest of us
NetBSD - Catch the Power!