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 [EMAIL PROTECTED] to [EMAIL PROTECTED] ]
>
> 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 [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message