Subject: Re: /usr/pkg/etc/rc.d/ scripts
To: Wojciech Puchar <wojtek@tensor.3miasto.net>
From: David Ferlier <david@netbsd-fr.org>
List: netbsd-users
Date: 03/24/2003 00:08:31
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.

David

-- 
	David Ferlier -- david@netbsd-fr.org

    http://happy-hacking.homeunix.org/~krp		(IPV4)  ||
    http://fortress.segfault.quatriemek.com/~krp	(IPV6)