Operating System - HP-UX
1834760 Members
3465 Online
110070 Solutions
New Discussion

All scripts available in /etc/rc2.d is running runlevel 3 also.

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

All scripts available in /etc/rc2.d is running runlevel 3 also.

Hi

I am new to hpux.

Previously i used linux (redhat and suse) only.

In linux, six runlevels are available.

scripts available in one runlevel(Ex: runleve12 - /etc/rc.d/rc2.d) will not run when we are booting with another runlevel (Ex: runlevel3 - /etc/rc.d/rc3.d).


Now i am using hpux. in that my default runlevel is 3. But all the scripts available in runlevel 2 (/etc/rc.d/rc2.d) is executed.

I can see this from "/etc/rc.local"

Pls explain me.
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor
Solution

Re: All scripts available in /etc/rc2.d is running runlevel 3 also.

Hi Senthil:

We have been over this topic before. You NEED TO READ:

http://docs.hp.com/en/934/startup.pdf

and/or:

http://docs.hp.com/en/B2355-60130/rc.1M.html

There is no '/etc/rc.local' in HP-UX.

Regards!

...JRF...
senthil_kumar_1
Super Advisor

Re: All scripts available in /etc/rc2.d is running runlevel 3 also.

sorry James, it is /etc/rc.log
James R. Ferguson
Acclaimed Contributor

Re: All scripts available in /etc/rc2.d is running runlevel 3 also.

Hi (again):

> sorry James, it is /etc/rc.log

OK, yes, that is the log of your startup events. Nevertheless, if you take the time to read the documentation I cited, you will see that during startup everything through the ending run-level (usually 3) is executed in sequence.

Regards!

...JRF...
senthil_kumar_1
Super Advisor

Re: All scripts available in /etc/rc2.d is running runlevel 3 also.

James,

As per you, all the scripts available in all three runlevels will be executed when we are booting thru runlevel 3 (including runlevel 3 files)?


Ok when we are using /etc/rc.config.d to configure some services to start at booting. To which runlevel this changege goes?


pls explain me.
James R. Ferguson
Acclaimed Contributor

Re: All scripts available in /etc/rc2.d is running runlevel 3 also.

HI (again):

> when we are using /etc/rc.config.d to configure some services to start at booting. To which runlevel this changege goes?

That depends on the '/sbin/rc?.d/' directory.

All of these questions are easily answered if you will just take the time to read the short, whitepaper I cited at the onset of this thread! It even has nice diagrams!

Regards!

...JRF...
OldSchool
Honored Contributor

Re: All scripts available in /etc/rc2.d is running runlevel 3 also.

"As per you, all the scripts available in all three runlevels will be executed when we are booting thru runlevel 3 (including runlevel 3 files)?"

1) He *didn't* say that.
2) Read the doc cited.
3) Read the relevant man page(s)

In which you will find that when transitioning from one runlevel to another, each intervening runlevel is cycled through. On boot to runlevel 3, the scripts for runlevel 1 would process, followed by the scripts for runlevel 2, then 3.


"Ok when we are using /etc/rc.config.d to configure some services to start at booting. To which runlevel this changege goes?""

at which runlevel you need to start them depends on when *you* want them run, and what they require when they do run. Any dependencies on other services, such as networking?.

Without knowing what "services" you are referring to, no blanket answer can be provided.

When you do read the man pages, pay close attention to the "naming" conventions used with start-up and kill scripts, as well as where to locate each.

oh yeah....would you quit citing how linux does it (as it is relevant to the OS at hand)?