From owner-freebsd-hackers Thu Nov 9 7:24: 9 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from virtual-voodoo.com (virtual-voodoo.com [204.120.165.254]) by hub.freebsd.org (Postfix) with ESMTP id 40BF337B4C5 for ; Thu, 9 Nov 2000 07:24:06 -0800 (PST) Received: (from root@localhost) by virtual-voodoo.com (8.11.1/8.11.1) id eA9FNbI72342; Thu, 9 Nov 2000 10:23:37 -0500 (EST) (envelope-from steve) Date: Thu, 9 Nov 2000 10:23:37 -0500 From: Charlie & To: Christoph Sold Cc: Jimmy Olgeni , hackers@FreeBSD.ORG Subject: Re: What about rc.shutdown.local? Message-ID: <20001109102337.A64659@virtual-voodoo.com> References: <3A0AAB5E.C6B1C53@uli.it> <3A0ABFB7.B269FAFD@i-clue.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A0ABFB7.B269FAFD@i-clue.de>; from so@server.i-clue.de on Thu, Nov 09, 2000 at 04:16:07PM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This already happens... at least in rc.shutdown v1.15: # $FreeBSD: src/etc/rc.shutdown,v 1.15 2000/10/20 20:26:05 ache Exp $ -Steve On Thu, Nov 09, 2000 at 04:16:07PM +0100, Christoph Sold wrote: > [ Redirected from stable@FreeBSD.org to hackers@FreeBSD.org ] > > Jimmy Olgeni schrieb: > > > > It would be nice to have a /etc/rc.shutdown.local called by > > /etc/rc.shutdown, > > to implement custom shutdown procedures. This is currently done by > > editing rc.shutdown, but you have to remember about it when you run > > mergemaster. > > > > Just a thought :) > > Better still would be /usr/local/etc/rc.d/*.sh called automatically > with parameter stop. To do so, insert > > for dir in ${local_startup}; do > if [ -d "${dir}" ]; then > for script in ${dir}/*.sh; do > if [ -x "${script}" ]; then > (set -T > trap 'exit 1' 2 > ${script} stop) > fi > done > fi > done > echo . > > into /etc/rc.shutdown. (Script shamelessly copied from /etc/rc), changed > "start" to "stop". > > HTH > -Christoph Sold > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message