Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Nov 2000 10:23:37 -0500
From:      Charlie & <root@virtual-voodoo.com>
To:        Christoph Sold <so@server.i-clue.de>
Cc:        Jimmy Olgeni <olgeni@uli.it>, hackers@FreeBSD.ORG
Subject:   Re: What about rc.shutdown.local?
Message-ID:  <20001109102337.A64659@virtual-voodoo.com>
In-Reply-To: <3A0ABFB7.B269FAFD@i-clue.de>; from so@server.i-clue.de on Thu, Nov 09, 2000 at 04:16:07PM %2B0100
References:  <3A0AAB5E.C6B1C53@uli.it> <3A0ABFB7.B269FAFD@i-clue.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001109102337.A64659>