Subject: Re: using pkg rc.d scripts
To: None <>
From: Lubomir Sedlacik <>
List: tech-pkg
Date: 12/29/2005 12:51:51
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Dec 29, 2005 at 12:04:13AM -0500, George Georgalis wrote:
> was wondering how people are starting pkgsrc rc.d scripts?
> the only documentation I see is in 15.5.16 of doc/pkgsrc.txt, put
> PKG_RCD_SCRIPTS=3DYES in /etc/mk.conf... but I'd really prefer the
> control scripts to go in (or be removed from) /usr/pkg/etc/rc.d/
> but there doesn't seem an established way to do this. I presume
> something in /etc/rc.local (based on /etc/rc) like=20
> files=3D$(rcorder -s nostart ${rc_rcorder_flags} /usr/pkg/etc/rc.d/*)
> for _rc_elem in $files; do
>         run_rc_script $_rc_elem start
> done
> would work okay, but I'd just assume /usr/pkg/etc/rc.d/ scripts be
> installed (and deinstalled) as long as I've got control via rc.conf or
> some other invocation.
> I tried setting various flavors of rc_rcorder_flags=3D/usr/pkg/etc/rc.d/*
> in rc.conf but my /usr is not mounted when rcorder is run from /etc/rc
> so is there another way to manage this? do we need a PKG_RCD_DIR?

pkgsrc/mk/defaults/mk.conf:RCD_SCRIPTS_DIR?=3D /etc/rc.d

if you want your package rc scripts separated, a very simple solution is
to set it to "/etc/pkg/rc.d" and set rc_rcorder_flags accordingly.


-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.2 (NetBSD)