SHUTDOWN(1M) — Kubota Pacfic Computer Inc. (Essential Utilities)
NAME
shutdown − shut down system, change system state
SYNOPSIS
/etc/shutdown [ −y ] [ −ggrace_period [ −iinit_state ]
DESCRIPTION
shutdown is executed by the super-user to change the state of the machine. By default, it brings the system to a state where only the console has access to the UNIX system. This state is traditionally called "single-user".
shutdown sends a warning message and a final message before it starts actual shutdown activities. By default, the shutdown command asks for confirmation before it starts shutting down daemons and killing processes. The options are as follows:
−y Pre-answers the confirmation question so the command can be run without user intervention. A default of 60 seconds is allowed between the warning message and the final message. Another 60 seconds is allowed between the final message and the confirmation.
−ggrace_period
Allows the super-user to change the number of seconds from the 60-second default.
−iinit_state
Specifies the state that init(1M) is to be put in following the warnings, if any. By default, the system state is "1", which is the same as states "s" and "S".
Other recommended system state definitions are:
state 0
Shut down the machine so it is safe to remove the power. Have the machine remove power if it can. The /etc/rc0 procedure is called to do this work.
state 1, s, S
Bring the machine to the state traditionally called single-user. The /etc/rc0 procedure is called to do this work.
state 5
Stop the UNIX system and go to the firmware monitor.
state 6
Stop the UNIX system and reboot to the state defined by the initdefault entry in /etc/inittab.
FILES
/etc/shutdown.d
SEE ALSO
init(1M), inittab(4), rc0(8), rc2(8)
September 02, 1992