Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jul 2004 19:25:07 +0300
From:      Mike Makonnen <mtm@identd.net>
To:        Scot Hetzel <swhetzel@gmail.com>
Cc:        Joe Marcus Clarke <marcus@freebsd.org>
Subject:   Re: [Fwd: Recent changes to rc.d on -CURRENT]
Message-ID:  <20040727162506.GA81394@rogue.acs-et.com>
In-Reply-To: <790a9fff04072707357dae728d@mail.gmail.com>
References:  <1090870254.6881.31.camel@shumai.marcuscom.com> <20040726193539.GA76196@nagual.pp.ru> <1090871921.6881.49.camel@shumai.marcuscom.com> <20040726214357.GA80423@nagual.pp.ru> <1090878694.6881.78.camel@shumai.marcuscom.com> <20040726220821.GA80533@nagual.pp.ru> <20040727064438.GA1403@rogue.acs-et.com> <20040727092130.GA93929@nagual.pp.ru> <790a9fff04072707357dae728d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 27, 2004 at 09:35:33AM -0500, Scot Hetzel wrote:
> On Tue, 27 Jul 2004 13:21:30 +0400, Andrey Chernov <ache@nagual.pp.ru> wrote:
> > On Tue, Jul 27, 2004 at 09:44:39AM +0300, Mike Makonnen wrote:
> > >
> > > The rc.d mechanism with respect to sourcing scripts works like this:
> > >       o scripts ending in '.sh' are sourced in the current subshell
> > >       o all other scripts are sourced in a subshell.
> > 
> > It is unnecessary complication (innovation). Everybody before localpkg
> > using knows he can rename his script to anything excepting ending with
> > ..sh. Say, script.sh.old. Now it is executed. Sigh.
> > 
> Only if the script hasn't been converted to rcNG.  As rcNG scripts
> require the setting of the <name>_enable="YES" variable in
> /etc/rc.conf, /etc/rc.conf.local, or /etc/rc.conf.d/<name>, before
> they will do any actions.

Yes, that is the way it should be. Non rc.d style scripts *must* have a
'.sh' extension. That doesn't change.

Before anyone mentions it, the
committed version doesn't do that, which is a bug. I'll fix it :-)

Cheers.
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm@identd.net | Fingerprint: AC7B 5672 2D11 F4D0 EBF8  5279 5359 2B82 7CD4 1F55
mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon !



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040727162506.GA81394>