System Administration Guide

How to Shut Down a Standalone System

  1. Become superuser.

  2. Shut down the system by using the init command.


    # init run-level
    

    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 System Prompt Should Be ... 

    The x86 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 resource shared) 

    hostname console login:
    hostname console login:

Example--Bringing an x86 System to Run Level 0

In the following example, the init command is used to bring an x86 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.

Example--Bringing a SPARC System to Run Level S

In the following example, the init and boot commands are used to bring a SPARC system to run level S (single-user state).


# init 0
#
INIT: New run level: 0
The system is coming down.  Please wait.
.
.
.
syncing file systems... [7] [7] [5] done
Program terminated
ok boot -s
Booting from: sd(0,0,0) -s
SunOS Release 5.6 Version generic [UNIX(R) System V Release 4.0]
Copyright (c) 1983-1997, Sun Microsystems, Inc.
configuring network interfaces: le0.
Hostname: venus
 
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 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 8, Booting a SPARC System (Tasks), or Chapter 9, Intel: Booting a System (Tasks), for instructions on bringing a system back to a multiuser state.