KEMBAR78
Solaris Run Level | PDF
0% found this document useful (0 votes)
97 views2 pages

Solaris Run Level

This document summarizes the default run levels in Solaris and how to change them. The default run levels are: S (single-user mode), 0 (access firmware), 1 (system administrator mode), 2 (multi-user without NFS), 3 (multi-user with NFS), 4 (unused), 5 (shutdown), and 6 (reboot). The current run level can be checked with the 'who -r' command. Run levels can be changed after boot up using the 'init' command or the default run level can be set by editing the '/etc/inittab' file and changing the 'initdefault' entry.

Uploaded by

seenuvasan1985
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views2 pages

Solaris Run Level

This document summarizes the default run levels in Solaris and how to change them. The default run levels are: S (single-user mode), 0 (access firmware), 1 (system administrator mode), 2 (multi-user without NFS), 3 (multi-user with NFS), 4 (unused), 5 (shutdown), and 6 (reboot). The current run level can be checked with the 'who -r' command. Run levels can be changed after boot up using the 'init' command or the default run level can be set by editing the '/etc/inittab' file and changing the 'initdefault' entry.

Uploaded by

seenuvasan1985
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

Solaris Run Level

Default Solaris Run Level:

S : Single user state (useful for recovery)

0 : Access Sun Firmware ( ok> prompt)

1 : System administrator mode

2 : Multi-user w/o NFS

3 : Multi-user with NFS

4 : Unused

5 : Completely shutdown the host

6 : Reboot

To find out current run level use who command:

$ who -r
Output:
. run-level 3 Mar 3 14:04 3 0 S

Solaris changing run levels after boot up:

You need to use init command, for example change run level to 2.
# /sbin/init 2

Solaris changing the default run level:

An entry with initdefault (in /etc/inittab file) is scanned only when init is initially invoked. init
uses this entry to determine which run level to enter initially.

Open /etc/inittab file:


# vi /etc/inittab

Find out this entry:


is:3:initdefault:
Change is:3 to number you want, don't use S, 0, 6 ;). Save file.

You might also like