RC.SHUTDOWN(8) OpenBSD System Manager's Manual RC.SHUTDOWN(8)NAMErc.shutdown - command script run at system shutdown
DESCRIPTION
When the system is administratively shut down using either the reboot(8)
or halt(8) command, rc(8) is invoked with the argument ``shutdown'',
which checks for the existence of a /etc/rc.shutdown script to run before
halting the system. This script, like rc.local(8), executes the rc.d(8)
scripts specified by the rc_scripts variable defined in rc.conf(8) in a
reverse order. /etc/rc.shutdown is also for commands added by the system
administrator.
The rc.shutdown script is also executed by init(8) if a keyboard-
requested halt is issued (for architectures that support this).
If rc.shutdown sets the variable powerdown to ``YES'', halt(8) will
attempt to power down the machine after it has halted.
SEE ALSOhalt(8), init(8), rc(8), rc.conf(8), rc.d(8), reboot(8)OpenBSD 4.9 February 12, 2011 OpenBSD 4.9