Solaris 10 Boot Process Sparc
Solaris 10 Boot Process Sparc
The boot process for SPARC platform involves 5 phases as shown in the diagram below. There is a
slight difference in booting process of a SPARC based and x86/x64 based Solaris operating system.
Init phase
1. Kernel starts the /etc/init daemon (with PID 1).
2. The /etc/init daemon starts the svc.startd process which is responsible for starting and
stopping the services.
3. The /etc/init daemon uses a file called /etc/inittab to boot up the system to the appropriate
run level mentioned in this file.
s or S - single user mode with critical file-systems mounted.(single user can access the OS)
1
OS)
- single user administrative mode with access to all file-systems. (single user can access the
2
- multi-user mode. Multiple users can access the system. NFS and some other network related
daemons does not run
3
- multi-user-server mode. Multi user mode with NFS and all other network resources available.
- not implemented.
- transitional run level. Os is shutdown and system is rebooted to the default run level.
svc.startd phase
1. After kernel starts the svc.startd daemon. svc.startd daemon executes the rc scripts in the
/sbin directory based upon the run level.
rc scripts
Now with each run level has an associated script in the /sbin directory.
# ls -l /sbin/rc?
-rwxr--r-- 3 root
sys
-rwxr--r-- 1 root
sys
-rwxr--r-- 1 root
sys
-rwxr--r-- 1 root
sys
-rwxr--r-- 3 root
sys
-rwxr--r-- 3 root
sys
-rwxr--r-- 1 root
sys
Each rc script runs the corresponding /etc/rc?.d/K* and /etc/rc?.d/S* scripts. For example for a run
level 3, below scripts will be executed by /sbin/rc3 :
/etc/rc3.d/K*
/etc/rc3.d/S*
The syntax of start and stop run scripts is
S##name_of_script - Start run control scripts
K##name_of_scrips - Stop run control scripts
Note the S and K in caps. Scripts starting with small s and k will be ignored. This can be used to
disable a script for that particular run level.