RC.SHUTDOWN(8)          OpenBSD System Manager's Manual         RC.SHUTDOWN(8)

NAME
     rc.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), is entirely for com-
     mands added by the system administrator.

     The rc.shutdown script is also executed by init(8) if a keyboard-request-
     ed halt is issued (for architectures that support this).

     If rc.shutdown sets the variable powerdown to ``YES'', halt(8) will at-
     tempt to power down the machine after it has halted.

SEE ALSO
     halt(8), init(8), rc(8), reboot(8)

OpenBSD 4.7                      May 31, 2007                                1
