System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How a system gets the default runlevel.?

 
SOLVED
Go to solution
Abubakkar
Frequent Contributor

How a system gets the default runlevel.?

How a system gets the default runlevel.?
and explain the what are the rc files there for what that files are functioning.
2 REPLIES
N,Vipin
Frequent Advisor
Solution

Re: How a system gets the default runlevel.?

Ismail Azad
Esteemed Contributor

Re: How a system gets the default runlevel.?

Hi,

What you are asking requires understanding of the boot phases of an HPUX operating system. However, referencing the portion of the question asked , the default runlevel is specified within a file called as /etc/inittab.

After pre_init_rc checks the root filesystem and after the root filesystem gets mounted, and of many things, the /sbin/rc program starts which is symbolically linked to the scripts in /sbin/init.d and for each runlevel you have rc scripts such as /sbin/rc1.d...,/sbin/rc2.d etc and these contain startup scripts which would execute and start with an S right before the sequence number when the system is on the way up and would execute K scripts when the system shuts down.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....