Date: Fri, 26 Nov 2004 18:59:14 -0000 (GMT) From: "David Jenkins" <david.jenkins@gmail.com> To: "Ruben de Groot" <mail25@bzerk.org> Cc: FreeBSD <freebsd-questions@freebsd.org> Subject: Re: Restarting rc.conf Message-ID: <35030.194.168.3.18.1101495554.squirrel@194.168.3.18> In-Reply-To: <20041126150036.GA14314@ei.bzerk.org> References: <41536B85000AC932@ims3e.cp.tin.it> <20041122114050.GL22677@lb.tenfour> <9395922d04112204346673e1ad@mail.gmail.com> <5CB9A43C3CE7C89E8A230981@utd49554.utdallas.edu> <41A5739F.50001@yahoo.com> <20041126150036.GA14314@ei.bzerk.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35030.194.168.3.18.1101495554.squirrel>