From owner-freebsd-hackers Sat Nov 11 2:39:36 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by hub.freebsd.org (Postfix) with ESMTP id DAB8F37B479 for ; Sat, 11 Nov 2000 02:39:33 -0800 (PST) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Sat, 11 Nov 2000 10:35:59 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 13uY0j-0000WR-00; Sat, 11 Nov 2000 10:35:49 +0000 Date: Sat, 11 Nov 2000 10:35:49 +0000 (GMT) From: Jan Grant To: Greg Black Cc: Jan Grant , Christoph Sold , Jimmy Olgeni , hackers@FreeBSD.ORG Subject: Re: What about rc.shutdown.local? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 11 Nov 2000, Greg Black wrote: > Jan Grant writes: > > > > Better still would be /usr/local/etc/rc.d/*.sh called automatically > > > with parameter stop. To do so, insert > > > > This is all nice (BTDT) although I find the *.sh pattern quite annoying, > > due to the alphabetisation issue. When I make these mods I tend to use > > the SysV-style S* and K* patterns - that means you get to control the > > order of startup _and_ shutdown (which might need a different sequence). > > This seems trivial. I name the scripts with two-digit prefixes > and an underscore so that I can have meaningful names and an > easy way to control the sequence. It _is_ trivial, but you miss my point: I run several things at startup that rely on a database service (which needs to be launched first). When they shut down, the DB must still be running (it's taken down last). So using a *.sh pattern for startup and shutdown scripts doesn't satisfy my requirements. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287163 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk The Java disclaimer: values of 'anywhere' may vary between regions. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message