shutdown(1M) DG/UX R4.11MU05 shutdown(1M)
NAME
shutdown - shut down system, change system state
SYNOPSIS
/sbin/shutdown [ -y ] [ -g grace_period [ -i init_state ]
DESCRIPTION
This command can only be executed by a user with appropriate
privilege to change the state of the machine. For systems supporting
the DG/UX Capability Option, appropriate privilege is defined as
having one or more specific capabilities enabled in the effective
capability set of the user. See cap_defaults(5) for the default
capabilities for this command.
On generic DG/UX systems, appropriate privilege means that your
process has an effective UID of root. See the
appropriate_privilege(5) man page for more information.
By default, it brings the system to a state where only the operator
console has access to the UNIX system. This state is traditionally
called "single-user".
The command sends a warning message to all of the terminals (all the
people currently logged in) and a final message before it starts
actual shutdown activities. By default, the command asks the user at
the console 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.
-ggrace_period
allows the privileged user to change the number of seconds
from the 60-second default. grace_period is expressed in
seconds: g300 gives a 5-minute warning.
-iinit_state
specifies the state that init(1M) is to be put in following
the warnings, if any. By default, system state "s" is used.
Possible system states are:
state s, S
Bring the machine to the state traditionally called single-user.
The /etc/rcS.d rc scripts are called to do this work. All
processes are killed and all file systems other than root are
unmounted.
state 1
Bring the machine to the state called the administrator run
level. All local file systems will be mounted, and the update
daemon will be running. If specified in the /etc/inittab file,
optional "administrative" terminals may be enabled.
SEE ALSO
init(1M), inittab(4), cap_defaults(5).
NOTES
The shutdown command must be invoked from the system console. To
determine if you are at the system console, execute /usr/bin/tty. If
you are running in a window environment such as X, you must terminate
the X session. If you are running xdm, you should terminate it also.
Licensed material--property of copyright holder(s)