cvs commit: src/etc rc.subr

Doug Barton dougb at
Mon Dec 5 01:38:15 PST 2005

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.

> 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.




     This .signature sanitized for your protection

More information about the cvs-src mailing list