Date: Sun, 9 Jul 2000 14:31:29 -0400 From: Peter Radcliffe <pir@pir.net> To: freebsd-stable@FreeBSD.ORG Subject: Re: HEADS UP: /etc/rc.shutdown calls local scripts now Message-ID: <20000709143129.B20852@pir.net> In-Reply-To: <Pine.GSO.4.21.0007091310130.15474-100000@nova.fnal.gov>; from zingelman@fnal.gov on Sun, Jul 09, 2000 at 01:11:23PM -0500 References: <Pine.GSO.4.21.0007091310130.15474-100000@nova.fnal.gov>
next in thread | previous in thread | raw e-mail | index | archive | help
Tim Zingelman <zingelman@fnal.gov> probably said: > [ -d ${dir} ] && for script in ${dir}/*.sh; do > grep -q "stop.*)" ${script} && > > Certainly not guaranteed to catch everything, but much better than > nothing IMHO. How about renaming them ? Leave the existing scripts as .sh, use a different suffix for scripts that grok start/stop ? No changes required for things that don't need to be stopped, no slowdown (since nothing is run for scripts that don't need a stop) and the things that do want stops are the only thing that have to change ? Not very clean, admittedly, but it might allow the two to operate together until all the old scripts have migrationed, if that was the aim. P. -- pir pir@pir.net pir@net.tufts.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000709143129.B20852>