cvs commit: src/etc rc.subr

Ceri Davies ceri at
Mon Dec 5 02:37:33 PST 2005

On Mon, Dec 05, 2005 at 01:38:11AM -0800, Doug Barton wrote:
> Ceri Davies wrote:
> >On Mon, Dec 05, 2005 at 07:04:15AM +0000, Doug Barton wrote:
> >>dougb       2005-12-05 07:04:15 UTC
> >>
> >>  FreeBSD src repository
> >>
> >>  Modified files:
> >>    etc                  rc.subr 
> >>  Log:
> >>  Change how *.sh scripts are handled. If the script is in /etc/rc.d,
> >>  source it into the shell. If not, handle it in a subshell the same
> >>  way that "real" rc.d-style scripts are handled. This will dramatically
> >>  ease the "process local scripts in the base rcorder" transition.
> >
> >Are you planning to do this for /usr/local/etc/rc.d as well? 
> For the purposes of the new world order (other than sourcing /etc/rc.d/*.sh 
> into the shell), scripts in /etc/rc.d/ and ${local_startup}/rc.d are 
> handled the same way.

Ok, it's the sourcing that I was worried about.

> >I often
> >take the execute bit off old-rc type scripts in there to disable them,
> >and that would obviously become a problem should this get applied there
> >too.
> Not obvious at all. :) If there is no execute bit on the script, it will 
> not get run, no matter where it resides.

Sure.  Sourcing is a different matter though.

Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former.			  -- Einstein (attrib.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the cvs-src mailing list