Use this procedure when you need to shut down a standalone system.
Become superuser.
Shut down the system.
# init run-level |
run-level identifies the new run level.
For more information, see init(1M).
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: |
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.
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 # |
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).