Date: Sun, 30 Nov 2003 19:18:03 -0500 From: Michael Edenfield <kutulu@kutulu.org> To: Robert Watson <rwatson@FreeBSD.org> Cc: Kris Kennaway <kris@obsecurity.org> Subject: Re: 5.2-BETA and related ports issues Message-ID: <20031201001803.GA52931@wombat.localnet> In-Reply-To: <Pine.NEB.3.96L.1031130111845.66375I-100000@fledge.watson.org> References: <20031130115547.GA67257@titan.klemm.apsfilter.org> <Pine.NEB.3.96L.1031130111845.66375I-100000@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Robert Watson <rwatson@FreeBSD.org> [031130 11:36]: >=20 > On Sun, 30 Nov 2003, Andreas Klemm wrote: >=20 > > I have a better idea, then we perhaps need something like a wrapper > > script that is part of the FreeBSD basic system under /etc/rc.d that > > checks for the start script under $LOCALBASE/etc/rc.d and starts it very > > early.=20 >=20 > Hmm. I talked with Gordon about this issue some last night, but he > pointed out a snag: most installs of FreeBSD place /usr on a separate > partition from /. The rcNG ordering decision is made before /usr is > mounted, as /usr is mounted as part of the pieces kicked off by rc.d. So > it would be a fairly large departure from the current implementation of > the rcNG code to reevaluate the ordering once more directories were > available in which to find scripts to run. Not that it's not doable, but > we need to think about it carefully (and, unfortunately, it's not as easy > as simply adding /usr/local/etc/rc.d to the list..) Having wrapper Since this issue only comes up for a small number of ports, mostly those ports which can behave as back-end services for things that are in the base, wouldn't in be sufficient to have certain checkpoints in the rcNG code that simple scanned for and ran anything in a given location? You wouldn't need to reorder anything, simply have clearly defined "pre-whatever" or "post-whatever" steps that did something like: for i in `grep "RUNAT: post-mount-usr" /usr/local/etc/rc.d/*.sh` ; do [ -x $i ] && sh $1; done --Mike --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/yoi7CczNhKRsh48RAglqAJ96p5E8MfI3qrCMBI9sXaYUD70cbgCfQbJl b3jp9ulch2og9ONGxjyM0Lw= =Oa35 -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031201001803.GA52931>