summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-07-20 18:35:37 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-07-20 18:35:37 +0000
commit1b8e697a6d3cd0edfd797214d64eec03736216aa (patch)
tree541bd6ff41eea7497f4ee8f65edf63469214c22c
parent8e3e950d48418a7f0705dc0d31ed27770e8e3eb4 (diff)
add an rc.shutdown(8) man page
-rw-r--r--sbin/init/init.85
-rw-r--r--sbin/reboot/reboot.83
-rw-r--r--share/man/man8/Makefile5
-rw-r--r--share/man/man8/rc.shutdown.827
4 files changed, 36 insertions, 4 deletions
diff --git a/sbin/init/init.8 b/sbin/init/init.8
index 98eada30b4a..c23fff9761a 100644
--- a/sbin/init/init.8
+++ b/sbin/init/init.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: init.8,v 1.21 1999/07/06 08:18:26 deraadt Exp $
+.\" $OpenBSD: init.8,v 1.22 1999/07/20 18:35:36 aaron Exp $
.\" $NetBSD: init.8,v 1.6 1995/03/18 14:56:31 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -287,6 +287,8 @@ terminal initialization information file
system startup commands
.It Pa /etc/rc.securelevel
commands that run before the security level changes
+.It Pa /etc/rc.shutdown
+script run at shutdown time
.El
.Sh SEE ALSO
.Xr kill 1 ,
@@ -298,6 +300,7 @@ commands that run before the security level changes
.Xr getty 8 ,
.Xr halt 8 ,
.Xr rc 8 ,
+.Xr rc.shutdown 8 ,
.Xr reboot 8 ,
.Xr shutdown 8
.Sh HISTORY
diff --git a/sbin/reboot/reboot.8 b/sbin/reboot/reboot.8
index f8ab9162d0b..6cee67767fd 100644
--- a/sbin/reboot/reboot.8
+++ b/sbin/reboot/reboot.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: reboot.8,v 1.16 1999/07/08 19:57:13 deraadt Exp $
+.\" $OpenBSD: reboot.8,v 1.17 1999/07/20 18:35:36 aaron Exp $
.\" $NetBSD: reboot.8,v 1.3 1995/10/05 05:36:21 mycroft Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
@@ -94,6 +94,7 @@ script which is run at shutdown time
.Xr utmp 5 ,
.Xr boot 8 ,
.Xr boot_<arch> 8 ,
+.Xr rc.shutdown 8 ,
.Xr savecore 8 ,
.Xr shutdown 8 ,
.Xr sync 8
diff --git a/share/man/man8/Makefile b/share/man/man8/Makefile
index f5ca3517944..1e5d769db1a 100644
--- a/share/man/man8/Makefile
+++ b/share/man/man8/Makefile
@@ -1,11 +1,12 @@
-# $OpenBSD: Makefile,v 1.22 1999/07/08 13:56:35 aaron Exp $
+# $OpenBSD: Makefile,v 1.23 1999/07/20 18:35:35 aaron Exp $
# $NetBSD: Makefile,v 1.13 1996/03/28 21:36:40 mark Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
MAN= afterboot.8 compat_bsdos.8 compat_freebsd.8 compat_ibcs2.8 \
compat_linux.8 compat_sunos.8 \
compat_svr4.8 compat_ultrix.8 dhcp.8 diskless.8 intro.8 rc.8 \
- rc.conf.8 ssl.8 sticky.8 update.8 yp.8 boot_config.8 vpn.8
+ rc.conf.8 rc.shutdown.8 ssl.8 sticky.8 update.8 yp.8 boot_config.8 \
+ vpn.8
SUBDIR= man8.amiga man8.arm32 man8.atari man8.hp300 man8.i386 man8.mac68k \
man8.sparc man8.sun3 man8.vax
diff --git a/share/man/man8/rc.shutdown.8 b/share/man/man8/rc.shutdown.8
new file mode 100644
index 00000000000..246d577b1b8
--- /dev/null
+++ b/share/man/man8/rc.shutdown.8
@@ -0,0 +1,27 @@
+.\" $OpenBSD: rc.shutdown.8,v 1.1 1999/07/20 18:35:35 aaron 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
+Currently, the
+.Nm
+script does nothing but save part of the entropy pool for reuse on reboot, but
+extra commands may be added by the system administrator.
+.Sh SEE ALSO
+.Xr halt 8 ,
+.Xr init 8 ,
+.Xr rc 8 ,
+.Xr reboot 8