SHUTDOWN(8)

NAME
shutdown — bring the system down

SYNOPSIS
/etc/shutdown [-rkhnf] 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) ).

ARGUMENTS

-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.

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. /etc/rc 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
/etc/halt
/etc/reboot

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

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