|Skip Navigation Links|
|Exit Print View|
|Booting and Shutting Down Oracle Solaris on SPARC Platforms Oracle Solaris 11 Information Library|
You can reboot a system by using either the init command or the reboot command.
The system is always running in one of a set of well-defined run levels. Run levels are also referred to as init states because the init process maintains the run level. The init command can be used to initiate a run level transition. When using the init command to reboot a system, run levels 2, 3, and 4 are available as multiuser system states.
The reboot command restarts the kernel. The kernel is loaded into memory by the PROM monitor, which transfers control to the loaded kernel. Although the reboot command can be used by the root user at anytime, in certain cases, as with the reboot of a server, the shutdown command is normally used first to warn all users who are logged in to the system of the impending loss of service. For more information, see Chapter 3, Shutting Down a System (Tasks).
The init command is an executable shell script that terminates all active processes on a system and then synchronizes the disks before changing run levels.
# init 6
# init 2
Example 4-1 Bringing a System to a Single-User State (Run Level S) by Using the init Command
In this example, the init command is used to bring a system to a single-user state (run level S).
# 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. SINGLE USER MODE Root password for system maintenance (control-d to bypass): xxxxxx single-user privilege assigned to /dev/console. Entering System Maintenance Mode #