From owner-freebsd-hackers Sat Nov 11 8:35:54 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from homer.softweyr.com (bsdconspiracy.net [208.187.122.220]) by hub.freebsd.org (Postfix) with ESMTP id D9B4E37B479 for ; Sat, 11 Nov 2000 08:35:50 -0800 (PST) Received: from [127.0.0.1] (helo=softweyr.com ident=Fools trust ident!) by homer.softweyr.com with esmtp (Exim 3.16 #1) id 13udXm-0000IU-00; Sat, 11 Nov 2000 09:30:18 -0700 Message-ID: <3A0D741A.5D50F8CF@softweyr.com> Date: Sat, 11 Nov 2000 09:30:18 -0700 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Jan Grant Cc: Greg Black , Christoph Sold , Jimmy Olgeni , hackers@FreeBSD.ORG Subject: Re: What about rc.shutdown.local? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jan Grant wrote: > > 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. make? tsort? This was discussed ad nauseum in the last round of discussions about replacing /etc/rc*, search the archives if you're interested. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message