1 .\" Copyright (c) 1988, 1991, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)shutdown.8 8.2 (Berkeley) 4/27/95
39 .Nd "close down the system at a given time"
45 .Op Ar warning-message ...
48 provides an automated shutdown procedure for super-users
49 to nicely notify users when the system is shutting down,
50 saving them from system administrators, hackers, and gurus, who
51 would otherwise not bother with such niceties.
53 Available friendlinesses:
57 arranges, in the manner of
63 The system is halted at the specified
74 does not actually halt the system, but leaves the
75 system multi-user with logins disabled (for all but super-user).
90 will bring the system down and
93 (indicating an immediate shutdown) or
94 specify a future time in one of two formats:
98 where the year, month, and day may be defaulted
99 to the current system values. The first form brings the system down in
101 minutes and the second at the absolute time specified.
102 .It Ar warning-message
103 Any other arguments comprise the warning message that is broadcast
104 to users currently logged into the system.
108 is supplied as an option, the warning message is read from the standard
112 At intervals, becoming more frequent as apocalypse approaches
113 and starting at ten hours before shutdown, warning messages are displayed
114 on the terminals of all users logged in. Five minutes before
115 shutdown, or immediately if shutdown is in less than 5 minutes,
116 logins are disabled by creating
119 warning message there. If this file exists when a user attempts to
122 prints its contents and exits. The file is
127 At shutdown time a message is written in the system log, containing the
128 time of shutdown, who initiated the shutdown and the reason.
130 signal is then sent to
132 to bring the system down to single-user state (depending on above
134 The time of the shutdown and the warning message
137 and should be used to
138 inform the users about when the system will be back up
139 and why it is going down (or anything else).
141 .Bl -tag -width /etc/nologin -compact
143 tells login not to let anyone log in
147 not to run fsck when rebooting
155 .Sh BACKWARD COMPATIBILITY
156 The hours and minutes in the second time format may be separated by
157 a colon (``:'') for backward compatibility.