Subject: Re: unable to get processes to start from /etc/rc.conf
To: None <netbsd-help@netbsd.org>
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
List: netbsd-help
Date: 05/23/2005 22:45:02
Mehul Sanghvi --> netbsd-help (2005-05-23 15:06:32 -0400):
> On 5/23/05, Jukka Salmi <j+nbsd@2005.salmi.ch> wrote:
> > Mehul Sanghvi --> netbsd-help (2005-05-23 11:39:25 -0400):
> > >     I have installed packages from pkgsrc, apache and postgresql in
> > > this particular case,
> > > and I am unable to get them to startup at boot time.
> > >
> > >     I have apache=yes and postgresql=yes in the /etc/rc.conf file.
> > > /usr/pkg/etc/rc.d/apache
> > > and /usr/pkg/etc/rc.d/pgsql both exist.
> > 
> > The scripts need to be in /etc/rc.d. Alternatively, you could set
> > rc_rcorder_flags and rcshutdown_rcorder_flags to contain /usr/pkg/etc/rc.d
> > and keep the scripts there.
> > 
> > 
> 
> 
> In my /etc/rc.conf:
> 
>      rc_rcorder_flags="/usr/pkg/etc/rc.d/*"
>      rcshutdown_rcorder_flags="/usr/pkg/etc/rc.d/*"
> 
> I also tried it without the "*" as well, but in neither case did it work.

How did it fail?

It should work:

$ ls -l /usr/pkg/etc/rc.d
total 4
-r-xr-xr-x  1 root  wheel  1069 May 23 22:37 apache
$ rc_rcorder_flags='/usr/pkg/etc/rc.d/*'
$ rcorder -s nostart $rc_rcorder_flags /etc/rc.d/*
[...]
/etc/rc.d/cron
/usr/pkg/etc/rc.d/apache


Cheers, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~