restore keywords
[unix-history] / usr / src / sbin / shutdown / shutdown.8
index 3395637..994424c 100644 (file)
@@ -2,9 +2,9 @@
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
-.\"    @(#)shutdown.8  4.1 (Berkeley) %G%
+.\"    @(#)shutdown.8  6.4 (Berkeley) %G%
 .\"
 .\"
-.TH SHUTDOWN 8 4/1/81
+.TH SHUTDOWN 8 ""
 .UC 4
 .SH NAME
 shutdown \- close down the system at a given time
 .UC 4
 .SH NAME
 shutdown \- close down the system at a given time
@@ -16,6 +16,10 @@ shutdown \- close down the system at a given time
 .B \-r
 ] [
 .B \-h
 .B \-r
 ] [
 .B \-h
+] [
+.B \-f
+] [
+.B \-n
 ]
 time [ warning-message ... ]
 .SH DESCRIPTION
 ]
 time [ warning-message ... ]
 .SH DESCRIPTION
@@ -30,7 +34,10 @@ not bother with niceties.
 is the time at which
 .I shutdown
 will bring the system down and
 is the time at which
 .I shutdown
 will bring the system down and
-may take two formats:
+may be the word
+.B now
+(indicating an immediate shutdown)
+or specify a future time in one of two formats:
 .BR + number
 and
 .RB hour : min.
 .BR + number
 and
 .RB hour : min.
@@ -47,7 +54,7 @@ shutdown is in less than 5 minutes, logins are disabled by
 creating
 /etc/nologin
 and writing a message there.
 creating
 /etc/nologin
 and writing a message there.
-If this file exists when a user logs in,
+If this file exists when a user attempts to log in,
 .IR login (1)
 prints its contents
 and exits.
 .IR login (1)
 prints its contents
 and exits.
@@ -56,16 +63,16 @@ The file is removed just before
 exits.
 .PP
 At shutdown time a
 exits.
 .PP
 At shutdown time a
-message is written in the file /usr/adm/shutdownlog, containing the
+message is written in the system log, containing the
 time of shutdown, who ran shutdown and the reason.
 time of shutdown, who ran shutdown and the reason.
-Then a terminate signal is sent at
+Then a terminate signal is sent to
 .I init
 to bring the system down to single-user state.
 Alternatively, if
 .I init
 to bring the system down to single-user state.
 Alternatively, if
-.B -r,
-.B -h,
+.B \-r,
+.B \-h,
 or
 or
-.B -k
+.B \-k
 was used, then
 .I shutdown
 will exec
 was used, then
 .I shutdown
 will exec
@@ -78,6 +85,19 @@ is to make people
 .I think
 the system is going down!)
 .PP
 .I think
 the system is going down!)
 .PP
+With the
+.B \-f
+option,
+.I shutdown
+arranges, in the manner of
+.IR fastboot (8),
+that when the system is rebooted the file systems will not
+be checked.  The
+.B \-n
+option prevents the normal
+.IR sync (2)
+before stopping.
+.PP
 The time of the shutdown and the warning message
 are placed in /etc/nologin and should be used to
 inform the users about when the system will be back up
 The time of the shutdown and the warning message
 are placed in /etc/nologin and should be used to
 inform the users about when the system will be back up
@@ -85,12 +105,8 @@ and why it is going down (or anything else).
 .SH FILES
 .DT
 /etc/nologin   tells login not to let anyone log in
 .SH FILES
 .DT
 /etc/nologin   tells login not to let anyone log in
-.br
-/usr/adm/shutdownlog   log file for succesful shutdowns.
 .SH "SEE ALSO"
 .SH "SEE ALSO"
-login(1), reboot(8)
+login(1), reboot(8), fastboot(8)
 .SH BUGS
 Only allows you to kill the system between now and 23:59 if
 you use the absolute time for shutdown.
 .SH BUGS
 Only allows you to kill the system between now and 23:59 if
 you use the absolute time for shutdown.
-.PP
-Times to shutdown are not nice and round, i.e. ``shutdown in 18 seconds''.