hosts.allow ?

Micah micahjon at ywave.com
Mon Mar 20 15:09:14 UTC 2006


Jerry McAllister wrote:
>> At Sun, 19 Mar 2006 it looks like Jerry McAllister composed:
>>
>>> One doesn't start anything from the rc.conf file - at least properly.
>>> Those things get started from /usr/local/etc/rc.d.
>>>
>>> What goes in /etc/rc.conf are environmental variable settings that
>>> those rc.d scripts look at to determine what to do.
>>>
>> I was under the impression that when one 'restarts' that the
>> service will "re-read" /etc/rc.conf
> 
> I am not sure just at what point the rc.conf is read or re-read.
> Try putting something in the /usr/local/etc/rc.d/xxxx.sh script to 
> check for a specific environmental variable that you make up and put 
> in /etc/rc.conf and then running the xxxx.sh script manually to see
> what it knows about - even just put a printenv in the script.
> 
> ////jerry

 From the source it's clear that rc.conf is read when the individual rc 
script executes a load_rc_config $name (or equivalent).

HTH,
Micah


More information about the freebsd-questions mailing list