From owner-freebsd-current@FreeBSD.ORG Sun Nov 30 16:18:07 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44A7B16A4CF; Sun, 30 Nov 2003 16:18:07 -0800 (PST) Received: from basement.kutulu.org (pcp03610121pcs.longhl01.md.comcast.net [68.49.239.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id A199E43FB1; Sun, 30 Nov 2003 16:18:04 -0800 (PST) (envelope-from kutulu@kutulu.org) Received: from wombat.localnet (wombat.localnet [192.168.69.3]) by basement.kutulu.org (Postfix) with ESMTP id D9DA9A904; Sun, 30 Nov 2003 19:18:03 -0500 (EST) Received: by wombat.localnet (Postfix, from userid 1001) id 945C2B855; Sun, 30 Nov 2003 19:18:03 -0500 (EST) Date: Sun, 30 Nov 2003 19:18:03 -0500 From: Michael Edenfield To: Robert Watson Message-ID: <20031201001803.GA52931@wombat.localnet> Mail-Followup-To: Robert Watson , Andreas Klemm , Dag-Erling Smorgrav , Kris Kennaway , freebsd-current@FreeBSD.org, Oliver Eikemeier References: <20031130115547.GA67257@titan.klemm.apsfilter.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline In-Reply-To: X-Mailer: Mutt http://www.mutt.org/ X-Accept-Language: en X-PGP-Key: http://www.kutulu.org/pgp/kutulu.asc X-PGP-Fingerprint: 1CE0 3C31 7013 D529 406D 37DC 09CC CD84 A46C 878F User-Agent: Mutt/1.5.5.1i cc: Dag-Erling Smorgrav cc: freebsd-current@FreeBSD.org cc: Oliver Eikemeier cc: Andreas Klemm cc: Kris Kennaway Subject: Re: 5.2-BETA and related ports issues X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2003 00:18:07 -0000 --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Robert Watson [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--