From owner-freebsd-hackers Thu Nov 9 7:15:26 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 098C337B4C5 for ; Thu, 9 Nov 2000 07:15:21 -0800 (PST) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id RAA26768; Thu, 9 Nov 2000 17:19:44 +0100 Message-ID: <3A0ABFB7.B269FAFD@i-clue.de> Date: Thu, 09 Nov 2000 16:16:07 +0100 From: Christoph Sold X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 To: Jimmy Olgeni Cc: hackers@FreeBSD.ORG Subject: Re: What about rc.shutdown.local? References: <3A0AAB5E.C6B1C53@uli.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ 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