summaryrefslogtreecommitdiff
path: root/share/man/man8/rc.shutdown.8
blob: 7fd4711ba55568503089d11d10c2b4af2c7490b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.\"	$OpenBSD: rc.shutdown.8,v 1.2 1999/09/03 22:14:08 deraadt Exp $
.Dd July 20, 1999
.Dt RC.SHUTDOWN 8
.Os
.Sh NAME
.Nm /etc/rc.shutdown
.Nd command script run at system shutdown
.Sh DESCRIPTION
When the system is administratively shut down using either the
.Xr reboot 8
or
.Xr halt 8
command, either of these programs checks for the existence of a
.Pa /etc/rc.shutdown
script to run before halting the system. It will also be executed by
.Xr init 8
if a keyboard-requested halt is issued (for architectures that support this).
.Pp
The
.Nm
script, like
.Xr rc.local 8 ,
is entirely for commands added by the system administrator.
.Sh SEE ALSO
.Xr halt 8 ,
.Xr init 8 ,
.Xr rc 8 ,
.Xr reboot 8