Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Nov 2004 16:00:36 +0100
From:      Ruben de Groot <mail25@bzerk.org>
To:        Rob <spamrefuse@yahoo.com>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Restarting rc.conf
Message-ID:  <20041126150036.GA14314@ei.bzerk.org>
In-Reply-To: <41A5739F.50001@yahoo.com>
References:  <41536B85000AC932@ims3e.cp.tin.it> <20041122114050.GL22677@lb.tenfour> <9395922d04112204346673e1ad@mail.gmail.com> <5CB9A43C3CE7C89E8A230981@utd49554.utdallas.edu> <41A5739F.50001@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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).)



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