Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ shutdown(1M) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

init(1M)

rc0(1M)

rc2(1M)

rc6(1M)

inittab(4)

shutdown(1M)                                                   shutdown(1M)

NAME
     shutdown - shut down system, change system state

SYNOPSIS
     /usr/sbin/shutdown [-y] [-ggraceperiod] [-iinitstate]

DESCRIPTION
     This command is executed by the superuser to change the state of the
     machine. In most cases, it is used to change from the multiuser state
     (state 2) to another state (see below).

     By default, it brings the system to a state where only the console has
     access to the Reliant UNIX system. This state is called singleuser
     (see below).

     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.

OPTIONS
     -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 mes-
                  sage. Another 60 seconds is allowed between the final
                  message and the confirmation.

     -ggraceperiod
                  Allows the superuser to change the number of seconds from
                  the 60-second default.

     -iinitstate Specifies the state that init is to be put in following
                  the warnings, if any. By default, system state "s" is
                  used.

     Other recommended system state definitions are:

     state 0      Shuts down the machine so it is safe to remove the power.
                  Have the machine remove power if it can. The rc0 pro-
                  cedure is called to do this work.

     state 1      State 1 is referred to as the administrative state. In
                  state 1 filesystems required for multiuser operations are
                  mounted, and logins requiring access to multiuser
                  filesystems can be used. When the system first comes up
                  into state 1, only the console is active and other mul-
                  tiuser (state 2) services are unavailable. Note that not
                  all user processes are stopped when transitioning from
                  multiuser state to state 1. This mode is used for admin-
                  istrative tasks such as installing optional utility pack-
                  ages.




Page 1                       Reliant UNIX 5.44                Printed 11/98

shutdown(1M)                                                   shutdown(1M)

     state s, S   State s (or S) is referred to as the singleuser state.
                  When the system comes down to single-state, all mounted
                  local file systems remain mounted, and all processes
                  started by init that should only be running in multiuser
                  are killed. Additionally, any process that has a utmp
                  entry will be killed. This last condition ensures that
                  port monitors and services started by them are killed.
                  The system can only be accessed through the console.

     state 5      Stops the Reliant UNIX system and goes to the SASH.

     state 6      Stops the Reliant UNIX system and reboots to the state
                  defined by the initdefault entry in /etc/inittab; config-
                  ure a new bootable operating system, if necessary, before
                  the reboot. The rc6 procedure is called to do this work.

SEE ALSO
     init(1M), rc0(1M), rc2(1M), rc6(1M), inittab(4).




































Page 2                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026