Subject: Re: Non strict REQUIRE/BEFORE in rcorder(8)
To: None <current-users@NetBSD.org>
From: Juan RP <juan@xtraeme.unixbsd.org>
List: current-users
Date: 02/04/2004 18:08:20
--Signature=_Wed__4_Feb_2004_18_08_20_+0100_I=/9Zn6ZQS1bXgYw
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

On Wed, 4 Feb 2004 19:04:03 +0200
"Mike M. Volokhov" <mishka@apk.od.ua> wrote:


> Hmm... IMHO, even 3rd party scripts should be resided in /etc/rc.d too.
> Moreover, you can depend joined /etc/rc.d and ${LOCALBASE}/etc/rc.d by
> the following command:
> 
> 	rcorder /etc/rc.d/* ${LOCALBASE}/etc/rc.d/*
> 
> But this means that your ${LOCALBASE}/etc/rc.d directory must be
> accessible *before* any file system has been mounted. On my own systems
> I just have copied /usr/pkg/etc/rc.d/* scripts to system /etc/rc.d, so
> as potentially all my used 3rd party software must be ran *after*
> file systems mounts. This will build all dependencies needed and then
> all 3rd party daemons / tools will smoothly starts.

You don't need to copy the rc.d scripts by hand...

PKG_RCD_SCRIPTS does it automatically... 
(it's explained in pkgsrc/mk/bsd.pkg.install.mk).

# PKG_RCD_SCRIPTS indicates whether to automatically install rc.d scripts
#       to ${RCD_SCRIPTS_DIR}.  It is either YES or NO and defaults to
#       NO.  This variable only takes effect if ${PKG_CONFIG} == "YES".

RCD_SCRIPTS_DIR by default is /etc/rc.d ...

-- 
Juan RP <juan@xtraeme.unixbsd.org>


--Signature=_Wed__4_Feb_2004_18_08_20_+0100_I=/9Zn6ZQS1bXgYw
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAIScHypkLYVDran0RAlTyAJwOW8fT+9pR59dV5UHMQFedBqp0ZgCcCQ0l
yu933NTcNuw9lrjNHmFSNZU=
=cMfL
-----END PGP SIGNATURE-----

--Signature=_Wed__4_Feb_2004_18_08_20_+0100_I=/9Zn6ZQS1bXgYw--