Operating System - HP-UX
1826268 Members
3679 Online
109692 Solutions
New Discussion

startup and shutdown sequence

 
SOLVED
Go to solution
Franky Leeuwerck_1
Regular Advisor

startup and shutdown sequence

Hello Unix people,

We have an Ingres DBMS running on HP-UX 11.
The default run level is 3.

I added a start/stop script for starting or stopping the DBMS after/before the system startup/shutdown. The script is located in the /sbin/init.d directory.
In the /sbin/rc3.d I have a link to the script for starting up, in the /sbin/rc2.d there is a link for shutting it down.

Everything works.

My question is : if I let the DBMS startup in run level 3 (/sbin/rc3.d), why must I let it stop in run level 2.

I tried it with stopping it in run level 3 but that didn't work.

Regards,

Franky Leeuwerck
6 REPLIES 6
Michael Tully
Honored Contributor
Solution

Re: startup and shutdown sequence

Hi,

Have a look at the man page for init (1m). This should explain everything.

$ man 1m init

HTH
Michael
Anyone for a Mutiny ?
Donald Kok
Respected Contributor

Re: startup and shutdown sequence

Hi Franky,

When you go up to a runlevel, say from 2 to 3, all S* will be run in alphabetic order. When you go down a runlevel (say from 5 to 3, or from 3 to 2) all K* scripts are run.

So you want to have a service run in level 3, you should kill it in level 2.

Greetzz
Donald
My systems are 100% Murphy Compliant. Guaranteed!!!
Franky Leeuwerck_1
Regular Advisor

Re: startup and shutdown sequence

Thanks for the quick replies.

Apparently the answer is very simple. It is the way HP-UX handles the run level transitions.

Best regards,
Franky
Donald Kok
Respected Contributor

Re: startup and shutdown sequence

Franky,
You seem to be one of the very few ingres admins around the forum. (Never met one before, all oracle). It is nice to be not alone anymore.

Maybe you like to see my start/stopscript, since CA does not deliver them.

Goodluck
Donald


My systems are 100% Murphy Compliant. Guaranteed!!!
Yogeeraj_1
Honored Contributor

Re: startup and shutdown sequence

hi,

Please allow me to shared this document with you.

This document explains the system startup and configuration models. Normally, Software developers construct rc files in a different manner, specifying run-level execution order and enabling control through configuration variables. System administrators control subsystem behavior, on a per-host basis, by modifying variables that control subsystem startup and shutdown.

regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Yogeeraj_1
Honored Contributor

Re: startup and shutdown sequence

hi,

Please allow me to share this document with you.

This document explains the system startup and configuration models. Normally, Software developers construct rc files in a different manner, specifying run-level execution order and enabling control through configuration variables. System administrators control subsystem behavior, on a per-host basis, by modifying variables that control subsystem startup and shutdown.

The run-level paradigm and naming conventions are properly illustrated here. Has helped me a lot.

regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)