From owner-freebsd-stable Sun Jul 9 13:26: 4 2000 Delivered-To: freebsd-stable@freebsd.org Received: from emu.prod.itd.earthlink.net (emu.prod.itd.earthlink.net [207.217.121.31]) by hub.freebsd.org (Postfix) with ESMTP id C662A37B6A4 for ; Sun, 9 Jul 2000 13:26:01 -0700 (PDT) (envelope-from cjc@pool0548.cvx21-bradley.dialup.earthlink.net) Received: from pool0548.cvx21-bradley.dialup.earthlink.net (pool0548.cvx21-bradley.dialup.earthlink.net [209.179.194.38]) by emu.prod.itd.earthlink.net (8.9.3-EL_1_3/8.9.3) with ESMTP id NAA24424 for ; Sun, 9 Jul 2000 13:25:59 -0700 (PDT) Received: (from cjc@localhost) by pool0548.cvx21-bradley.dialup.earthlink.net (8.9.3/8.9.3) id NAA00583 for freebsd-stable@FreeBSD.ORG; Sun, 9 Jul 2000 13:24:23 -0700 (PDT) Date: Sun, 9 Jul 2000 13:24:22 -0700 From: "Crist J. Clark" To: freebsd-stable@FreeBSD.ORG Subject: Re: HEADS UP: /etc/rc.shutdown calls local scripts now Message-ID: <20000709132421.B394@dialin-client.earthlink.net> Reply-To: cjclark@alum.mit.edu References: <20000709143129.B20852@pir.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000709143129.B20852@pir.net>; from pir@pir.net on Sun, Jul 09, 2000 at 02:31:29PM -0400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Jul 09, 2000 at 02:31:29PM -0400, Peter Radcliffe wrote: > Tim Zingelman 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. How about leave the usage of /usr/local/etc/rc.d the same as it is now and put the sysV style ones in /etc/rc.d or someplace else? In /etc/rc, there can be "local_startup" and "local_startup_old" lists that contain the directories which contain each type of script? -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message