|Home||Switchboard||Unix Administration||Red Hat||TCP/IP Networks||Neoliberalism||Toxic Managers|
May the source be with you, but remember the KISS principle ;-)
Skepticism and critical thinking is not panacea, but can help to understand the world better
|Open Boot||Serial Console on Solaris||SMF||Startup Files|
|ALOM||Boot Process||Linux Run Levels||History||Humor||Etc|
Solaris init states refer to the level of services provided by the system. The exact services and processes run at each init level are determined by the scripts in the /etc/rc#.d directories. The default service levels for each init state are listed below:
ok>) or security monitor (
>) prompt. It is safe to shut down the system when it is at this init state.
/usr) are mounted. This init state is often used for sensitive functions (such as kernel libc patches) or while troubleshooting a problem that is keeping the system from booting into multiuser mode.
boot -acommand. The system is taken to init 0 and an interactive boot is started.
The init states are defined in the
/etc/inittab file, which usually
points at the scripts in
/sbin/rcrun-level. These scripts in
turn examine the contents of the
The scripts in these directories whose names begin with the letter
are run in "stop" mode first in alphabetical order. Then the scripts whose names
begin with the letter
S are run in "start" mode in alphabetical order.
To get to a desired run level n, each of the rc (run control) scripts from 1
to n is run. To get to run level 0, the
K scripts are run in each
rc#.d directory between the current run level and 0 in reverse numerical
In the default configuration, the rc scripts accomplish the following tasks:
named, if appopriate.
kerbd(the Kerberos client daemon) if appropriate.
lpdaemons, as appropriate.
rpc.bootparamd, as appropriate.
/sbin/rc4is usually not defined. It can be used in a non-default configuration to achieve a tailored run level.
lockd(NFS client services).
initdefaultlevel from the
/sbin/rcS: This run level differs from 1 in the following particulars:
/usr/kvmfilesystems are checked and mounted (if necessary).
To find out current runlevel use who command:
$ who -rOutput:
. run-level 3 Mar 3 14:04 3 0 SSolaris changing runlevels after bootup
You need to use init command, for example change runlevel to 2.
# /sbin/init 2Solaris changing the default runlevel
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/inittabFind out this entry:
Change is:3 to number you want, don't use S, 0, 6 ;). Save file.
The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D
Copyright © 1996-2018 by Dr. Nikolai Bezroukov. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) in the author free time and without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.
This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...
|You can use PayPal to make a contribution, supporting development of this site and speed up access. In case softpanorama.org is down you can use the at softpanorama.info|
The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.
Last modified: April 18, 2018