Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 1997 12:13:23 +1100 (EST)
From:      "Daniel O'Callaghan" <danny@panda.hilink.com.au>
To:        Jason Fesler <jfesler@calweb.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: How to add extra shutdown code?
Message-ID:  <Pine.BSF.3.91.970326120457.18394a-100000@panda.hilink.com.au>
In-Reply-To: <3.0.1.32.19970325152304.00a22800@pop.calweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, 25 Mar 1997, Jason Fesler wrote:

> Hmm, I don't see how to do this under FreeBSD (too easy under Slowlaris ;-).
> Is there any way I can have a script ran at stutdown?   I have some stuff
> that needs to run at shutdown time (versus after reboot).

shutdown -r execs /sbin/reboot and shutdown -h execs /sbin/halt.

You could replace each of those programs with a shell script which does 
stuff you want and then calls /sbin/halt.real, or /sbin/reboot.real

Might be a nice addition to the system to have an rc.halt which is 
processed by halt and reboot if it exists, though.

Danny



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970326120457.18394a-100000>