Subject: Re: /usr/pkg/etc/rc.d/ scripts
To: David Ferlier <david@netbsd-fr.org>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 03/23/2003 18:41:28
In message <20030323230831.GF1187@happy-hacking.lab>, David Ferlier writes:
>On Sun, Mar 23, 2003 at 11:01:55PM +0100, Wojciech Puchar wrote:
>> what is the Right Way (TM) to make them starting?
>>
>> i'm doing
>>
>> cd /etc/rc.d
>> ln -s /usr/pkg/etc/rc.d/<what_i_need> .
>>
>> and in rc.conf as with system packages
>>
>
>Simple. Look at your /etc/rc, you should have a line like:
>
>files=$(rcorder -s nostart ${rc_rcorder_flags} /etc/rc.d/*)
>
>This orders rc.d scripts according dependencies. But it only looks at
>/etc/rc.d/* scripts. Just put that instead :
>
>files=$(rcorder -s nostart ${rc_rcorder_flags} /etc/rc.d/* /usr/pkg/etc/rc.d/*
>)
>
>And add <what_you_need>=YES in your /etc/rc.conf.
>
I think we just had this discussion, at great length...
Anyway -- both schemes fail if /usr is on a separate file system than
the root, since /usr/pkg/etc won't be mounted when that line is
executed.
--Steve Bellovin, http://www.research.att.com/~smb (me)
http://www.wilyhacker.com (2nd edition of "Firewalls" book)