summaryrefslogtreecommitdiffstats
path: root/sbin/shutdown/shutdown.8
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>1999-06-21 06:21:05 +0000
committerjkoshy <jkoshy@FreeBSD.org>1999-06-21 06:21:05 +0000
commitf4b6c01b897e0897a4f08dc0bea7b5ebd8b5340f (patch)
tree259c9db0f0097db189dccaf59b23d39e439fe0fb /sbin/shutdown/shutdown.8
parent196a4d4309a59da00ff90c59c9060393d4e7e00e (diff)
downloadFreeBSD-src-f4b6c01b897e0897a4f08dc0bea7b5ebd8b5340f.zip
FreeBSD-src-f4b6c01b897e0897a4f08dc0bea7b5ebd8b5340f.tar.gz
Minor cleanups to shutdown(8):
- Make the -k "don't actually halt" flag incompatible with the halt/reboot options -h, -p, and -r. - The -n "don't sync" option is ignored if -k is specified. Issue a warning message. - Compute the actual shutdown time written to /var/run/nologin correctly in the case of "now" being specified.
Diffstat (limited to 'sbin/shutdown/shutdown.8')
-rw-r--r--sbin/shutdown/shutdown.813
1 files changed, 12 insertions, 1 deletions
diff --git a/sbin/shutdown/shutdown.8 b/sbin/shutdown/shutdown.8
index 70d6044..90041f5 100644
--- a/sbin/shutdown/shutdown.8
+++ b/sbin/shutdown/shutdown.8
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)shutdown.8 8.2 (Berkeley) 4/27/95
-.\" $Id: shutdown.8,v 1.8 1998/12/11 10:35:38 bde Exp $
+.\" $Id: shutdown.8,v 1.9 1999/01/11 09:07:42 asami Exp $
.\"
.Dd Dec 11, 1998
.Dt SHUTDOWN 8
@@ -71,6 +71,9 @@ system multi-user with logins disabled (for all but super-user).
Prevent the normal
.Xr sync 2
before stopping.
+This option is ignored if
+.Fl k
+is specified.
.It Fl p
The system will turn the power off after shutdown if it can.
.It Fl r
@@ -105,6 +108,14 @@ is supplied as an option, the warning message is read from the standard
input.
.El
.Pp
+Only one of
+.Fl h ,
+.Fl k ,
+.Fl p ,
+and
+.Fl r
+can be specified at a time.
+.Pp
At intervals, becoming more frequent as apocalypse approaches
and starting at ten hours before shutdown, warning messages are displayed
on the terminals of all users logged in. Five minutes before
OpenPOWER on IntegriCloud