From owner-cvs-all Sat Jul 8 0:12:34 2000 Delivered-To: cvs-all@freebsd.org Received: from netplex.com.au (adsl-63-207-30-186.dsl.snfc21.pacbell.net [63.207.30.186]) by hub.freebsd.org (Postfix) with ESMTP id 835C337B98C; Sat, 8 Jul 2000 00:12:20 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (peter@localhost [127.0.0.1]) by netplex.com.au (8.9.3/8.9.3) with ESMTP id AAA92429; Sat, 8 Jul 2000 00:12:19 -0700 (PDT) (envelope-from peter@netplex.com.au) Message-Id: <200007080712.AAA92429@netplex.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: obrien@FreeBSD.org Cc: Robert Watson , Sheldon Hearn , Brian Somers , Thomas Gellekum , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc rc.shutdown In-Reply-To: Message from "David O'Brien" of "Fri, 07 Jul 2000 23:19:06 PDT." <20000707231906.B88142@dragon.nuxi.com> Date: Sat, 08 Jul 2000 00:12:19 -0700 From: Peter Wemm Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "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. Oh yes, the other problem with doing it this way is that you cannot have a different sort order for startup vs. shutdown. These are run by a '*' glob - so the shutdown order is the same as startup - it should be reverse. eg: if you start mysql first, then apache, you want to shut down apache first before stopping mysql. Using the same rc.d thing prevents the ability to do this unless people want to get tricky with 'sort -r' etc. Right now, you have to stick a number in front of 'mysql.sh' to make it glob before 'apache.sh'. By all means, use start/stop args, but hard link the .sh files into seperate directories or something so that the order can be tweaked.. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message