From owner-freebsd-rc@FreeBSD.ORG Fri Jun 17 13:38:49 2005 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23D6516A41C; Fri, 17 Jun 2005 13:38:49 +0000 (GMT) (envelope-from jr@opal.com) Received: from smtp.vzavenue.net (smtp.vzavenue.net [66.171.59.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8227443D53; Fri, 17 Jun 2005 13:38:48 +0000 (GMT) (envelope-from jr@opal.com) Received: from linwhf.opal.com (112.79.171.66.subscriber.vzavenue.net [66.171.79.112]) by smtp.vzavenue.net (MOS 3.4.8-GR) with ESMTP id CKE01284; Fri, 17 Jun 2005 09:38:32 -0400 (EDT) Received: from ASSP-nospam (localhost [127.0.0.1]) by linwhf.opal.com (8.13.3/8.13.3) with ESMTP id j5HDcWmS049364; Fri, 17 Jun 2005 09:38:32 -0400 (EDT) (envelope-from jr@opal.com) Received: from 127.0.0.1 ([127.0.0.1] helo=linwhf.opal.com) by ASSP-nospam ; 17 Jun 05 13:38:32 -0000 Received: (from jr@localhost) by linwhf.opal.com (8.13.3/8.13.3/Submit) id j5HDcVXA049363; Fri, 17 Jun 2005 09:38:31 -0400 (EDT) (envelope-from jr) Date: Fri, 17 Jun 2005 09:38:31 -0400 From: "J.R. Oldroyd" To: Brooks Davis Message-ID: <20050617133831.GM16676@linwhf.opal.com> References: <42A8A91B.8000402@FreeBSD.org> <20050609210223.GB16168@odin.ac.hmc.edu> <20050612121504.K844@ync.qbhto.arg> <20050613005533.GA28966@odin.ac.hmc.edu> <42AD19C9.2040403@FreeBSD.org> <20050613155211.GB19722@odin.ac.hmc.edu> <20050614134732.GB16676@linwhf.opal.com> <20050614172740.GC20371@odin.ac.hmc.edu> <20050615162948.GG16676@linwhf.opal.com> <20050615173021.GB15807@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fOHHtNG4YXGJ0yqR" Content-Disposition: inline In-Reply-To: <20050615173021.GB15807@odin.ac.hmc.edu> User-Agent: Mutt/1.4.2.1i X-Junkmail-Status: score=0/50, host=smtp.vzavenue.net Cc: Doug Barton , freebsd-rc@FreeBSD.org Subject: Re: Use of rcorder for local rc.d/*.sh scripts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2005 13:38:49 -0000 --fOHHtNG4YXGJ0yqR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jun 15, 10:30, Brooks Davis wrote: > On Wed, Jun 15, 2005 at 12:29:48PM -0400, J.R. Oldroyd wrote: > > >=20 > > I meant first in localpkg. Or in a localpkg-early script, but I don't > > see the need for an extra script. >=20 > The reason I think we may need an early script is that we're going to be > moving some scripts well before localpkg. >=20 OK, I see now localpkg isn't run 'till later than I realized. So a new localpkg-early would run just after mountcritremote/MOUNTDONE? Would it just run the [0-9]*.sh files or would it also handle files tagged with "bootearly" as Doug proposed? > I think *.* is fine. I'd prefer to complain about them from the > beginning so we catch any exceptions (possibly suppressing warnings for > obvious examples like *.bak, *.orig, *.sample). >=20 OK on the pattern, but don't we specifically want warnings for those files - they're precisely the ones we want folk to move. > > If we're not changing /etc/rc and adding the transition functionality > > in localpkg, the transition localpkg will have to: > >=20 > > ... > > > I'd rather not support sourcing at all until full transition. I'd > rather force porters to install files in /etc/rc.d for now if they want > sourcing. >=20 > ... > > Ah, I see why the disconnect on localpkg-early above. I was thinking > we'd do the rcordering in /etc/rc in B which would change things a bit, > but could still be basically compatible. Hmm. I thought that for the transitional version, we'd agreed to NOT change /etc/rc or rc.subr so everything would be done in localpkg with a possible localpkg-early. If you're now thinking we are OK to change /etc/rc and rc.subr even for the transitional version, I'm not clear why we'd keep localpkg at all and I don't see why we don't offer sourcing right away either, as long as we can clearly tell which files want it (which a new keyword would be a good indicator of). > I'm more concerned about supporting installing .sh scripts on 5.x for > the next two years than I am about supporting the installation of .sh > scripts to be sourced two years now. >=20 Based on your comment below, presumably this change won't need to go into the 5.x branch at all. I'm now reading what you're saying as meaning we should put the transitional scripts into head and into the 6-RELEASE branch, and put the final one into 7.0. =20 > > If we can't make major changes to the startup script processing in the > 6.x line once 6.0-RELEASE happens. Anything that would break user > scripts would be specifically disallowed. The rule of the project is > that we generally have to deprecate a major interface for one release > branch before we can break it. The rules for determining which scripts > are run definitely falls into this category. Remember, we're not just > dealing with ports, we're also dealing with weird user scripts so we > need to give them plenty of warning. If we weren't so close to 6.0 > release, we might be able to get away with warnings in 5.x and full > deprecation in 6.0, but I think we're too late for that. This is why > I'd like to see some modifications to /etc/rc in addition to localpkg. >=20 So be it then. Seems like a long transition to me, but if those are the rules, no problem. So what's needed next? Do you want more patch suggestions from me? If so, I still need to clear up whether it's rc/rc.subr that'll change or localpkg/localpkg-early or all of these. Or, do you and Doug have enough to take it from here? -jr --fOHHtNG4YXGJ0yqR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iQDVAwUBQrLSV0kkqUax7f6FAQJC1gYAhDIu3P8hOxgSJHmyfjdKy59+duFUkQLJ muA3J3tlsLxkn6YVBhFz9tEEmrmaqNf7aQ9Nd3WO+9YI4kdIi67+GcZnP8PA3/Fd WbFD9fce0YrMz5ALXlf8E7vy0JUMoh0+8k9PnTotBB+Di52lXbr2YBv94TfciJkm noPr9fn/z4R0smOC3wm9KkOXw0rYbanIAlqMLr4yl2vcpuMBgjol//7Anfq+zu1c IU7GzLANi5//Suk4Ag2poO1NtP6H+zvX =oLJv -----END PGP SIGNATURE----- --fOHHtNG4YXGJ0yqR--