Date: Fri, 10 Jun 2005 11:55:10 +0200 From: Alexander Leidinger <Alexander@Leidinger.net> To: Doug Barton <dougb@freebsd.org> Cc: freebsd-ports@freebsd.org Subject: Re: Including PREFIX/etc/rc.d/* scripts in the system's rcorder for startup in 6.0-Release Message-ID: <20050610115510.ogtddyz1cggggks8@netchild.homeip.net> In-Reply-To: <42A8B4E6.9090401@FreeBSD.org> References: <42A8B4E6.9090401@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Doug Barton <dougb@freebsd.org> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050610115510.ogtddyz1cggggks8>