System Administration Guide: Basic Administration

How to Shut Down a Standalone System

Use this procedure when you need to shut down a standalone system.

  1. Become superuser.

  2. Shut down the system.


    # init run-level
    

    run-level identifies the new run level.

    For more information, see init(1M).

  3. Use the following table to verify that the system is at the run level that you specified in the init command.

    Specified Run Level 

    SPARC System Prompt 

    IA System Prompt 

    S (single-user level) 

    ##

    2 (multiuser level) 

    ##

    0 (power-down level) 

    ok or >type any key to continue

    3 (multiuser level with NFS resources shared) 

    hostname console login:

    hostname console login:

x86: Example—Bringing a Standalone System to Run Level 0

In the following example, the init command is used to bring an IA based standalone system to the level where it is safe to turn off power.


# init 0
#
INIT: New run level: 0
The system is coming down.  Please wait.
.
 
.
 
.
The system is down.
syncing file systems... [11] [10] [3] done
Type any key to continue

If you are bringing the system to run level 0 to turn off power to all devices, see How to Turn Off Power to All Devices.

SPARC: Example—Bringing a Standalone System to Run Level S

In the following example, the init is used to bring a SPARC based standalone system to run level S (single-user level).


# init s
#
INIT: New run level: S
The system is coming down for administration.  Please wait.
Unmounting remote filesystems: /vol nfs done.
Print services stopped.
syslogd: going down on signal 15
Killing user processes: done. 
INIT: SINGLE USER MODE

Type Ctrl-d to proceed with normal startup,
(or give root password for system maintenance): xxx
Entering System Maintenance Mode
# 

Where to Go From Here

Regardless of why you shut down the system, you'll probably want to return to run level 3 where all file resources are available and users can log in. For instructions on bringing a system back to a multiuser level, see Chapter 13, SPARC: Booting a System (Tasks) or Chapter 14, IA: Booting a System (Tasks).