Operating System - HP-UX
1828617 Members
5086 Online
109983 Solutions
New Discussion

Start & Kill Script in rcx.d

 
SOLVED
Go to solution
susee_sundar
Regular Advisor

Start & Kill Script in rcx.d

Hi....

Anybody Tell me when the Scripts start with

Sxx->Executed
Kxx->Executed

in rc.d Directory
8 REPLIES 8
Arunvijai_4
Honored Contributor

Re: Start & Kill Script in rcx.d

Hi Susee,

Sxx->Is executed during start up time
Kxx-> Is executed during shutdown or restart time.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Sandman!
Honored Contributor

Re: Start & Kill Script in rcx.d

rule of thumb to remember is:

S==start in Sxx
K==kill in Kxx
susee_sundar
Regular Advisor

Re: Start & Kill Script in rcx.d

Ok Arun.,

Well...When We are Switchin from RunLevel 3 to Runlevel 1...

Which Kill Scripts in Runlevel Directory are Executed....Sequetially..

Give me the Priority of Execution Kill Scripts also...

Thx
Sandman!
Honored Contributor

Re: Start & Kill Script in rcx.d

See man rc(1m)
Yogeeraj_1
Honored Contributor

Re: Start & Kill Script in rcx.d

Hi Sundar,

please find attached one of the great documents on this issue which i had downloaded from this site a few year ago and which i am still using for training purposes today!

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
susee_sundar
Regular Advisor

Re: Start & Kill Script in rcx.d

Ok....Tell me is it Right

MOVING FROM RUNLEVEL 3 to 1

/sbin/rc3.d/K01
/sbin/rc3.d/K02
/sbin/rc3.d/K10

Then

/sbin/rc2.d/K01
/sbin/rc2.d/K02
/sbin/rc2.d/K10

Is it Right..........

Sandman!
Honored Contributor
Solution

Re: Start & Kill Script in rcx.d

>MOVING FROM RUNLEVEL 3 to 1

>/sbin/rc3.d/K01
>/sbin/rc3.d/K02
>/sbin/rc3.d/K10

>Then

>/sbin/rc2.d/K01
>/sbin/rc2.d/K02
>/sbin/rc2.d/K10

>Is it Right..........

Right for the most part except that K or S is followed by a 3-digit number for ex. /sbin/rc2.d/K002scriptname

Also there are no (K)ill scripts in run-level 3 [/sbin/rc3.d] since it the endpoint of system startup; just like there are no (S)tart scripts in run-level 0 [/sbin/rc0.d] since it the endpoint of system shutdown.

~hope it helps
susee_sundar
Regular Advisor

Re: Start & Kill Script in rcx.d

Great Thanks To SandMan....