SHUTDOWN(1M-SysV) RISC/os Reference Manual SHUTDOWN(1M-SysV)
NAME
shutdown - shut down system, change system state
SYNOPSIS
/etc/shutdown [ -y ] [ -ggrace_period [ -iinit_state ]
DESCRIPTION
This command 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".
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.
-g grace_period
allows the super-user to change the number of
seconds from the 60-second default. Note
that there is no space between the arguments,
e.g. -g60 specifies a grace period of 60
seconds.
-i init_state specifies the state that init(1M) is to be
put in following the warnings, if any. By
default, system state "s" is used (the same
as states "1" and "S"). Note that there is
no space between the arguments, e.g. -i0
specifies that the system is to be shutdown,
state 0.
Other recommended system state definitions are:
state 0
Shut the machine down so it is safe to remove the
power. 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. (Though s and 1 are both used to go to sin-
gle user state, s only kills processes spawned by init
Printed 1/15/91 Page 1
SHUTDOWN(1M-SysV) RISC/os Reference Manual SHUTDOWN(1M-SysV)
and does not unmount file systems. State 1 unmounts
everything except root and kills all user processes,
except those that relate to the console.)
state 6
Stop the UNIX system and reboot to the state defined by
the initdefault entry in /etc/inittab.
SEE ALSO
init(1M), rc0(1M), rc2(1M).
inittab(4) in the Programmer's Reference Manual.
Page 2 Printed 1/15/91