HEADS UP: MFC of local_startup changes to rc.d complete
itetcu at people.tecnik93.com
Fri Dec 23 09:52:18 PST 2005
On Fri, 23 Dec 2005 15:38:15 +0100
Florent Thoumie <flz at 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 at 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
> > 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
IOnut - Unregistered ;) FreeBSD "user"
"Intellectual Property" is nowhere near as valuable as "Intellect"
More information about the freebsd-ports