shutdown(1M)
shutdown - shut down system, change system state
As shipped in IRIX 6.5.30. Last changed in IRIX 6.5.22.
NAME shutdown - shut down system, change system state SYNOPSIS cd /; /etc/shutdown [ -y ] [ -ggrace_period [ -iinit_state ] [ -p ] DESCRIPTION This command is executed by the superuser to change the state of the machine. By default, it brings the system down into the PROM monitor. The command sends a warning message and a final message before it starts actual shutdown activities. By default, the command asks for confirmation before it starts shutting down daemons and killing processes. The options are used 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, unless the grace period is less than 60 seconds, in which case the grace period is used. -ggrace_period Allows the superuser 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, system state "0" is used. -p If the new init_state is 0, -p requests that the power be turned off after the system is shut down. Only some systems support this. For automatically turning the system back on, see wakeupat(1M). The definitions of the init_state values that shutdown accept are: state 0 Stop the IRIX system and go to the firmware monitor. At this point it is safe to power down the machine. The /etc/rc0 procedure is called upon entering this init_state to perform various system cleanup functions. state 1, s, S Bring the machine to the state traditionally called single-user, which provides a quiescent system and a superuser shell running on the system console. Upon entering this state, the system kills all user processes and unmounts all filesystems except the root (local filesystems may be remounted before the shell prompt appears, in some implementations). The /etc/rc0 procedure is called to do these and various other system cleanup functions. state 6 Stop the IRIX system and reboot to the state defined by the initdefault entry in /etc/inittab. CAPABILITIES The root user at MAC label .I dblow does not need capabilities, whereas if the MAC label other than dblow must at least have CAP_MAC_WRITE capability in their permitted set of capabilities to perform the shutdown operation. In addition, capability CAP_SHUTDOWN is needed when requesting to power off the system with the -p option. SEE ALSO init(1M), uadmin(1M), rc0(1M), rc2(1M), wakeupat(1M), inittab(4), capabilities(4).