Subject: Re: using pkg rc.d scripts
To: None <tech-pkg@netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 12/29/2005 12:51:51
--O8XZ+2Hy8Kj8wLPZ
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?
>=20
> 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
>=20
> files=3D$(rcorder -s nostart ${rc_rcorder_flags} /usr/pkg/etc/rc.d/*)
>=20
> for _rc_elem in $files; do
> run_rc_script $_rc_elem start
> done
>=20
> 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.
>=20
> 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
>=20
> 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.
regards,
--=20
-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org> --
--O8XZ+2Hy8Kj8wLPZ
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
iD8DBQFDs83XiwjDDlS8cmMRAprkAJ94bagpn6JiUz26IL0/st5fjzRwqwCgkm9K
TIegzTljEA9aLX6wuEuZluQ=
=gqm8
-----END PGP SIGNATURE-----
--O8XZ+2Hy8Kj8wLPZ--