diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-04-08 08:53:09 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-04-08 08:53:09 +0000 |
commit | b8d6760607555f8a86a3d61f4b160d2e81c89a1e (patch) | |
tree | 5db7dde78d719307f6fdfe5513d418b54cef769d /share/man/man8 | |
parent | 934489350cfb362dfd35405e247e317f34eb9920 (diff) |
document "powerdown" in rc.shutdown;
based on diffs from henning, and ok him too...
Diffstat (limited to 'share/man/man8')
-rw-r--r-- | share/man/man8/rc.shutdown.8 | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/share/man/man8/rc.shutdown.8 b/share/man/man8/rc.shutdown.8 index fe61cfd1f84..d99ed86dc3b 100644 --- a/share/man/man8/rc.shutdown.8 +++ b/share/man/man8/rc.shutdown.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rc.shutdown.8,v 1.6 2003/10/24 08:15:43 jmc Exp $ +.\" $OpenBSD: rc.shutdown.8,v 1.7 2006/04/08 08:53:07 jmc Exp $ .\" .\" Copyright (c) 1999 Aaron Campbell .\" All rights reserved. @@ -35,18 +35,31 @@ 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 +command, +.Xr rc 8 +is invoked with the argument +.Dq shutdown , +which checks for the existence of a .Pa /etc/rc.shutdown script to run before halting the system. -It will also be executed by +This script, like +.Xr rc.local 8 , +is entirely for commands added by the system administrator. +.Pp +The +.Nm +script is also executed by .Xr init 8 if a keyboard-requested halt is issued (for architectures that support this). .Pp -The +If .Nm -script, like -.Xr rc.local 8 , -is entirely for commands added by the system administrator. +sets the variable +.Va powerdown +to +.Dq YES , +.Xr halt 8 +will attempt to power down the machine after it has halted. .Sh SEE ALSO .Xr halt 8 , .Xr init 8 , |