Operating System - HP-UX
1834726 Members
2662 Online
110069 Solutions
New Discussion

Re: which runlevel ????????????????

 
Not applicable

which runlevel ????????????????

Dear all,

When we install Hp-unix first time in new system , after installation process is complted.In which runlevel M/C is starting ????
plz give me correct ans.

thankx in advance..

- Love
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: which runlevel ????????????????

Hi:

The scripts should be something like:

/sbin/rc3.d/S800cmcluster

/sbin/rc2.d/K002cmcluster

hence MC/ServiceGuard is started when run-level 3 is entered.

...JRF...
A. Clay Stephenson
Acclaimed Contributor

Re: which runlevel ????????????????

I'm guessing by M/C you mean MC ServiceGuard.
My first advice is don't trust us; ask the system.

cd /sbin/init.d
look for the desired start/stop script. In this case it's 'cmcluster'. Now we need to find the links to it (and typically they are symbolic links).

cd /sbin/rc3.d
ls -l
you should see entries like
S100nfs.server -> /sbin/init.d/nfs.server
S800cmcluster -> /sbin/init.d/cmcluster

Since we find the link to the cmcluster command in the rc3.d directory and since the
file in the rc directory begin wirh 'S' (start); we know that cmcluster is started at run-level 3.

Now cd /sbin/rc2.d
ls -l
You should see an entry similar to this:
K002cmcluster -> /sbin/init.d/cmcluster.
K (kill) means that cmcluster is stopped going to run-level 2.

You can apply this same method to startup/shutdown rc process. Man rc for details.

Regards, Clay
If it ain't broke, I can fix that.
Not applicable

Re: which runlevel ????????????????

When we install Hp-unix first time in new system , after installation process is complted.In which runlevel new system is starting ????
plz give me correct ans.

1. S/s
2. 1
3. 2
4. 4
A. Clay Stephenson
Acclaimed Contributor

Re: which runlevel ????????????????

Better answer,
Ask the system.

Do a who -r. That will tell you the current run level.

Now to determine the default run level.
vi /etc/inittab. You will see an 'initdefault'
entry which will resemble this:
init:3:initdefault

The second field (3 in this case) is the default run state.

Always ask the system itself.

Regards, Clay
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: which runlevel ????????????????

I am not sure that any of the answers you are giving as choices are valid.

Are you taking these questions from a test you are taking somewhere? The questions are very hard to understand. You have posted several and I am having a hard time understanding exactly what you are asking in all of them.
Shannon Petry
Honored Contributor

Re: which runlevel ????????????????

I hear that understanding thing loud and clear! It looks too like the user is taking a test! Multiple choice with bad answers though.....

First the default run level in HP-UX for a system running X is 3. If you have no graphics, the run level is 2. Lots of servers do not have graphics, and therefor do not support the starting of the X interface at run level 3.

Run level 1 is single user mode
Run level 2 is multi-user mode +networking
Run level 3 is run level 2 + X (or dtlogin, vuelogin, etc...)

For the mc service guard, it should be started at I would think run level 2 as it requires networking. As the other user said, look at the other run directories to find the links. /sbin/rc1.d, /sbin/rc2.d, and /sbin/rc3.d are the directories for each respective run level.

Regards,
Shannon
Microsoft. When do you want a virus today?
KapilRaj
Honored Contributor

Re: which runlevel ????????????????

Hi,

It depends, The best way is to do a who -r and find out the answer from the system.

kaps
Nothing is impossible
Carlos Fernandez Riera
Honored Contributor

Re: which runlevel ????????????????

By default???

It is defined on /etc/inittab file:

init:3:initdefault:

run level 3 is used in boot unless you have booted with hpux -is



unsupported