System Administration Guide, Volume 1

How to Shut Down a Standalone System

  1. Become superuser.

  2. Shut down the system by using the init(1M) command.

    # init run-level


    Identifies the new run level. 

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

    If the System Was Brought To ... 

    The SPARC Based System Prompt Should Be ... 

    The IA Based System Prompt Should Be ... 

    Run level S (single-user state) 


    Run level 2 (multiuser state) 


    Run level 0 (power-down state) 

    ok or >type any key to continue

    Run level 3 (multiuser state with remote resources shared) 

    hostname console login:

    hostname console login:

IA: Example--Bringing a System to Run Level 0 (Standalone)

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

See "How to Turn Off Power to All Devices" if you are bringing the system to run level 0 to turn off power to all devices.

SPARC: Example--Bringing a System to Run Level S (Standalone)

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

# 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. 
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 the reason for shutting down the system, you'll probably want to return to run level 3 where all file resources are available and users can log in. See Chapter 10, SPARC: Booting a System (Tasks) or Chapter 11, IA: Booting a System (Tasks) for instructions on bringing a system back to a multiuser state.