Subject: Re: Starting apache automatically
To: None <pkgsrc-users@netbsd.org>
From: Adrian Portelli <adrianp@stindustries.net>
List: pkgsrc-users
Date: 02/26/2006 22:03:54
joerg@britannica.bec.de wrote:
> On Sun, Feb 26, 2006 at 10:22:48PM +0200, Adrian Maier wrote:
>> I am wondering which is the preferred/recommended way to start at boot time
>> the daemons that are installed from pkgsrc (like apache and postgresql).
>
> If you are using one of the BSDs with NetBSD derived RC system (e.g.
> /sbin/rcorder exists), just link the startup script from pkg/share/rc.d
> to /etc/rc.d and add them to /etc/rc.conf.
>
> For other systems, e.g. Linux, a more involved approach might be
> necessary.
>
> Joerg
>
For NetBSD you can also set:
PKG_RCD_SCRIPTS=YES
in mk.conf which should do the trick, I think (i.e it will copy the
files into /etc/rc.d for you). You'll still have to setup /etc/rc.conf
manually yourself.
adrian.