summaryrefslogtreecommitdiff
path: root/share/man/man8/rc.shutdown.8
blob: 231274e32a369c37a3432ce0d396ca79678e7cf6 (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
29
.\"	$OpenBSD: rc.shutdown.8,v 1.3 2001/10/05 14:45:54 mpech 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