SHUTDOWN(8)

NAME
shutdown - bring the system down

SYNOPSIS
/bin/shutdown [-t sec] [-rkhncf] time [warning-message]

DESCRIPTION
Shutdown brings the system down in a secure way. All logged in users are notified that the system is going down, and login(1) is blocked. It is possible to shut the system down immideately, or after a delay. All processes are first notified that the system is going down by the signal SIGTERM. This gives programs like vi(1) the time to save the file being editted, mail and news processing programs a chance to exit cleanly, etc. When the system is idle, the program /etc/brc is run, if present. Then the system is either rebooted by reboot(1) or halted by halt(1).

OPTIONS

-t sec
    Wait sec seconds between sending processes the warning and the kill signal.

-k  Don't really shutdown; only send the warning messages to everybody.

-r  Reboot after shutdown.

-h  Halt after shutdown.

-n  Don't sync before rebooting or halting.

-f  Do a `fast' reboot, that means no filesystems will be checked.

-c  Cancel an already running shutdown. With this option it is ofcourse not possible to give the time argument, but you can enter a explanitory message on the command line that will be sent to all users.

time
    When to shutdown.

warning-message
    Message to send to all users.

The time argument can have different formats. First, it can be an absolute time in the format hh:mm, in which hh is the hour (1 or 2 digits) and mm is the minute of the hour (in two digits). Second, it can be in the format +m, in which m is the number of minutes to wait. The word now is an alias for +0.

The -f flag means `reboot fast'. This only creates an advisory file /etc/fastboot which can be tested by the system when it comes up again. The boot rc file can test if this file is present, and decide not to run fsck(1) since the system has been shut down in the proper way. After that, the boot process should remove /etc/fastboot.

FILES
/etc/fastboot
/bin/halt
/bin/reboot

AUTHOR
Miquel van Smoorenburg, miquels@drinkel.nl.mugnet.org

SEE ALSO
fsck(1), init(1), halt(8), reboot(8)