From owner-cvs-all Sat Jul 8 2:23:47 2000 Delivered-To: cvs-all@freebsd.org Received: from turtle.looksharp.net (cc360882-a.strhg1.mi.home.com [24.2.221.22]) by hub.freebsd.org (Postfix) with ESMTP id A23E037B925; Sat, 8 Jul 2000 02:23:29 -0700 (PDT) (envelope-from bsdx@looksharp.net) Received: from localhost (bsdx@localhost) by turtle.looksharp.net (8.9.3/8.9.3) with ESMTP id FAA17232; Sat, 8 Jul 2000 05:23:30 -0400 (EDT) (envelope-from bsdx@looksharp.net) Date: Sat, 8 Jul 2000 05:23:30 -0400 (EDT) From: Adam To: "Andrey A. Chernov" Cc: "David O'Brien" , Peter Wemm , Robert Watson , Sheldon Hearn , Brian Somers , Thomas Gellekum , cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/etc rc.shutdown In-Reply-To: <20000708020917.A26528@freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 8 Jul 2000, Andrey A. Chernov wrote: >On Fri, Jul 07, 2000 at 11:19:06PM -0700, David O'Brien wrote: >> On Thu, Jul 06, 2000 at 05:44:33PM -0700, Peter Wemm wrote: >> > I have previously implemented /etc/shutdown.d and /usr/local/etc/shutdown.d >> > to avoid the confusion about what happens when /etc/rc.shutdown >> > calls "/usr/local/etc/rc.d/apache.sh stop" and the old apache.sh doesn't >> > check $1 and starts up instead. >> >> I'd rather make "stop" required in ports and call with it in current. >> Then a 'HEADS UP' to -current. The added functionally is just too nice >> not to have. > >The problem is not for ports, many people have hand-made local scripts in >/usr/local/etc/rc.d which knows nothing about start/stop. I prefer >/usr/local/etc/shutdown.d for programs which require it than damaging many >systems at once by restarting local scripts on shutdown. Can't we run a grep -l "somethinghere" /usr/local/etc/rc.d/* at shutdown and only run those scripts which contain a reasonable indication of supporting the stop feature? A quick hack to make this work would be to put a comment in the .sh scripts which ports install which grep would find and wordy enough that someone could look at a FreeBSD supplied .sh and say Oh! I see how to make mine work like that. Even just: # I support start|stop To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message