Become superuser.
Shut down the system by using the init 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.
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.
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 # |
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.