|Skip Navigation Links|
|Exit Print View|
|Oracle Solaris Administration: Common Tasks Oracle Solaris 11 Information Library|
A system's run level (also known as an init state) defines what services and resources are available to users when the system is in that state. A system can be in only one run level at a time. Oracle Solaris has eight run levels, which are described in the following table. The default run level is specified in the /etc/inittab file as run level 3.
Besides using typical boot commands to boot the system to a specified state, the svcadm command can be used to change the run level of a system by selecting a milestone at which to run. The following table shows how run levels correspond to milestones.
Table 4-2 Oracle Solaris Run Levels
Example 4-1 Determining a System's Run Level
The output of the who -r command displays information about a system's current run level, as well as previous run levels.
$ who -r . run-level 3 Dec 13 10:10 3 0 S $
Use this procedure to boot a SPARC based system that is currently at run level 0 to run level 3. For instructions on booting an x86 based system to run level 3, see Booting an x86 Based System to a Multiuser State (Run Level 3) in Booting and Shutting Down Oracle Solaris on x86 Platforms.
The automatic boot procedure displays a series of startup messages and brings the system to run level 3. For more information, see the boot(1M) man page.
The login prompt is displayed when the boot process has finished successfully.
hostname console login:
Example 4-2 SPARC: Booting a System to a Multiuser State (Run Level 3)
The following example shows the messages from booting a system to run level 3.
ok boot Probing system devices Probing memory ChassisSerialNumber FN62030249 Probing I/O buses . . . . OpenBoot 4.30.4.a, 8192 MB memory installed, Serial #51944031. Ethernet address 0:3:ba:18:9a:5f, Host ID: 83189a5f. Rebooting with command: boot Boot device: /pci@1c,600000/scsi@2/disk@0,0:a File and args: SunOS Release 5.11 Version fips_checksum_nightly 64-bit Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved. DEBUG enabled misc/forthdebug (455673 bytes) loaded Hardware watchdog enabled Hostname: portia-123 NIS domain name is solaris.us.oracle.com portia-123 console login: NIS domain name is solaris.us.oracle.com
The following procedure describes how to boot an x86 based system to a single-user state (run level S). For instructions on booting a SPARC based system to run level S, see How to Boot a System to a Single-User State (Run Level S) in Booting and Shutting Down Oracle Solaris on SPARC Platforms
If the system displays the Press any key to reboot prompt, press any key to reboot the system.
You can also use the Reset button at this prompt. If the system is shut down, turn the system on with the power switch.
When the boot sequence begins, the GRUB main menu is displayed.
If you cannot use the arrow keys, use the caret (^) key to scroll up and the letter v key to scroll down.
From here, you can add options and arguments to the kernel or kernel$ line.
Note - To specify other boot behaviors, replace the -s option with the appropriate boot option.
The following alternate boot behaviors can be specified in this manner:
Perform a reconfiguration boot
Boot the system with the kernel debugger
Redirect the console
For more information, see the boot(1M) man page.
# who -r . run-level S Jun 13 11:07 S 0 0