From owner-freebsd-ports@FreeBSD.ORG Fri Jun 10 09:55:26 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 386EE16A41C; Fri, 10 Jun 2005 09:55:26 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from mailout02.sul.t-online.com (mailout02.sul.t-online.com [194.25.134.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AB4443D53; Fri, 10 Jun 2005 09:55:24 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd19.aul.t-online.de by mailout02.sul.t-online.com with smtp id 1DggEV-0000lk-02; Fri, 10 Jun 2005 11:55:23 +0200 Received: from Andro-Beta.Leidinger.net (XGGpdsZCgebb18g5cDlxjCZYlnua-P+BBR3BHRpkCMIKIKtE1vvH0H@[84.165.243.251]) by fwd19.sul.t-online.de with esmtp id 1DggEQ-0dy8ki0; Fri, 10 Jun 2005 11:55:18 +0200 Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j5A9tALp084123; Fri, 10 Jun 2005 11:55:10 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from 141.113.101.32 ([141.113.101.32]) by netchild.homeip.net (Horde MIME library) with HTTP for ; Fri, 10 Jun 2005 11:55:10 +0200 Message-ID: <20050610115510.ogtddyz1cggggks8@netchild.homeip.net> X-Priority: 3 (Normal) Date: Fri, 10 Jun 2005 11:55:10 +0200 From: Alexander Leidinger To: Doug Barton References: <42A8B4E6.9090401@FreeBSD.org> In-Reply-To: <42A8B4E6.9090401@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-ID: XGGpdsZCgebb18g5cDlxjCZYlnua-P+BBR3BHRpkCMIKIKtE1vvH0H@t-dialin.net X-TOI-MSGID: 2e5ab048-1003-47f7-92f9-55a8e5e7eb61 Cc: freebsd-ports@freebsd.org Subject: Re: Including PREFIX/etc/rc.d/* scripts in the system's rcorder for startup in 6.0-Release X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2005 09:55:26 -0000 Doug Barton wrote: > The first part of the approach is to hack /etc/rc.d/localpkg to use rcorder > to handle the keywords that are already in the scripts with *.sh filename > patterns. This will preserve the lexical ordering that exists now, while > giving port authors (and users of course) the ability to start using > keywords with existing scripts that fit the *.sh pattern. > > Part two of this proposal is to hack on /etc/rc to use rcorder on any > scripts in PREFIX/etc/rc.d that DON'T use the *.sh filename pattern, but DO > include a new keyword (that will be specified). In this way, port authors > and users can start opting into the new system at their convenience. Once > the new system has been in place "long enough," we can drop processing for > the special key word, and just handle all rc.d scripts the same, regardless > of their location. The current way of handling non-rc_order scripts is to only execute *.sh-scripts with an execute bit. In my tree I have a patch (first part of http://www.leidinger.net/FreeBSD/current-patches/misc.diff) which explicitely lists scripts without an execute bit. I think this is useful (it solves the "Huh? Why doesn't it start up? Do I have a typo in the config? Ah! No! There's no execute bit set!"-problem). Even if the "old-style" scripts will get deprecated, I think it would be nice to add something like this to at least the startup of the old-style scripts. I don't mind if such a functionality would also show up for the rc_order scripts. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 Q: Why do ducks have flat feet? A: To stamp out forest fires. Q: Why do elephants have flat feet? A: To stamp out flaming ducks.