Date: Thu, 09 Nov 2000 16:16:07 +0100 From: Christoph Sold <so@server.i-clue.de> To: Jimmy Olgeni <olgeni@uli.it> Cc: hackers@FreeBSD.ORG Subject: Re: What about rc.shutdown.local? Message-ID: <3A0ABFB7.B269FAFD@i-clue.de> References: <3A0AAB5E.C6B1C53@uli.it>
next in thread | previous in thread | raw e-mail | index | archive | help
[ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A0ABFB7.B269FAFD>