Date: Fri, 23 Dec 2005 19:52:07 +0200 From: Ion-Mihai Tetcu <itetcu@people.tecnik93.com> To: Florent Thoumie <flz@xbsd.org> Cc: Doug Barton <dougb@freebsd.org>, freebsd-stable@freebsd.org, Jose M Rodriguez <josemi@freebsd.jazztel.es>, freebsd-ports@freebsd.org Subject: Re: HEADS UP: MFC of local_startup changes to rc.d complete Message-ID: <20051223195207.6f2e6148@it.buh.tecnik93.com> In-Reply-To: <200512231538.21356.flz@xbsd.org> References: <43A910F8.5090009@FreeBSD.org> <200512231519.28445.josemi@redesjm.local> <200512231538.21356.flz@xbsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 23 Dec 2005 15:38:15 +0100 Florent Thoumie <flz@xbsd.org> wrote: > On Friday 23 December 2005 15:19, Jose M Rodriguez wrote: > > > I'm not sure this is the way to go, but ... > > > > Can someone put a document on what is the desired model? I think we > > have too much little pieces of disperse notes about this. > > > > Also, some working notes about ports and RELENG_4/RELENG_5 src > > issues will be of interest. > > > > Hope this can be tweak in time for 6.1 (Jan). > > Convert your old script to rcNG scripts and use USE_RC_SUBR= > script.sh. Ensure that the rcorder preamble contains meaningful > keywords (PROVIDES, REQUIRES, BEFORE, ...) for all your rcNG scripts. > bsd.port.mk should do the rest. You should actually convert your old script to a ``rc.d'' script, that's how they are called now. Also, if your script is rc.d compatible you should use: USE_RC_SUBR=script (without .sh) For now it doesn't matter because bsd.port.mk install all USE_RC_SUBR scripts with .sh extension, but see below >>>> On Thu, 22 Dec 2005 10:52:27 -0800 Brooks Davis <brooks@one-eyed-alien.net> wrote: [ ... ] > > Does this mean that we will remove the .sh extension on port rc.d > > startup scripts? Because a) it's been only running .sh scripts for > > quite a while, and b) it's really nice and easy to disable scripts > > by moving them to .old or another extension.. > > Yes. You should be able to disable any correctly written rc.d script > by setting the variable listed by running "<script> rcvar" to NO in > /etc/rc.conf (and this should be the default). In 8.0 any scripts > ending in .sh will be run in the context of /etc/rc so they should be > extremely rare and must be very carefully crafted to avoid namespace > pollution. > > > Also, how will this effect cups which installs a .sample file? and > > any other port that does this? > > .sample files should go away. If for some reason a script must > be modified to be useful, the sample version should go under > ${PREFIX}/share. >>>> -- IOnut - Unregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" root rot
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051223195207.6f2e6148>