Restarting rc.conf
    David Jenkins 
    david.jenkins at gmail.com
       
    Fri Nov 26 10:59:08 PST 2004
    
    
  
On Fri, 26 November, 2004 15:00, Ruben de Groot said:
> On Thu, Nov 25, 2004 at 02:54:39PM +0900, Rob typed:
>
>> This does not work if a service has been changed from YES to NO (or
>> has
>> been removed from rc.conf). Therefore I think this is better:
>>
>>  foreach dir in /etc/rc.d /usr/local/etc/rc.d
>>  do
>>    cd $dir
>>    foreach file in *
>>    do
>>      $file forcestop
>>      $file start
>>    done
>>  done
>
> Have you actually tested this? I think not. (Hint: look at the scripts
> that
> are in /etc/rc.d and what they actually do. Then RTM rcorder(8).)
Just out of interest, does anyone think it would be useful to have
such a script?
i.e. to restart all services in /usr/local/etc/rc.d and /etc/rc.d
(after checking rc.conf obviously)
David
    
    
More information about the freebsd-questions
mailing list