Become superuser.
Shut down the system by using the init(1M) command.
# init run-level |
run-level |
Identifies the new run level. |
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 resources shared) |
hostname console login: |
hostname console login: |
In the following example, the init command is used to bring an x86 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.
In the following example, the init is used to bring a SPARC 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. INIT: SINGLE USER MODE Type Ctrl-d to proceed with normal startup, (or give root password for system maintenance): xxx Entering System Maintenance Mode # |
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, x86: Booting a System (Tasks) for instructions on bringing a system back to a multiuser state.