shutdown(1M) shutdown(1M)NAME shutdown - close down the system at a given time SYNOPSIS /etc/shutdown [-hknry ] [ -ginterval] [-iinitstate] [timeout [warning-message ...]] DESCRIPTION shutdown provides an automated shutdown procedure which a superuser can use to notify users nicely when the system is shutting down, saving them from system administrators, hack- ers, and gurus, who would otherwise not bother with such ni- ceties. timeout is the time at which shutdown brings the system down and may be the word now (indicating an immediate shutdown) or specify a future time in one of two formats: number and hour:min. The first form brings the system down in number minutes and the second brings the system down at the time of day indicated (as a 24-hour clock). If timeout is not specified, shutdown prompts the user for a value. At intervals which get closer together as apocalypse ap- proaches, the warning messages are displayed at the termi- nals of all users on the system. The interval may be set with the -g option. If no message is specified on the com- mand line, shutdown prompts the user for one. If -k is specified, no further actions are taken. (If it isn't obvious, -k is to make people think the system is go- ing down!) When the timeout has expired, shutdown asks for final con- firmation. Then a signal is sent to init(1M) to bring the system down to single-user state. All other user processes are then terminated. Subsequently, if -r or -h was used, then shutdown emulates reboot(1M), powerdown(1M), respec- tively. Alternatively, the final system state may be speci- fied using the -i option. The initstates 6 and 0 are synonyms for the options -r and -h, respectively. The de- fault initstate is 1. The -n option prevents the normal sync(2) before stopping. If this option is used with the options -h or -r, the state of the file systems is not synchronized; this causes the file systems to be checked when the system is rebooted. The -y option instructs shutdown to use a default warning- message and a default timeout of two minutes, if they are not supplied on the command line. The -y option is implied when the options -h, -k or -r are used. April, 1990 1
shutdown(1M) shutdown(1M)FILES /etc/shutdown SEE ALSO reboot(1M), powerdown(1M), login(1), reboot(2). BUGS Only allows you to kill the system between now and 23:59 if you use the absolute time for shutdown. 2 April, 1990