Operating System - HP-UX
1834140 Members
3192 Online
110064 Solutions
New Discussion

startup scripts locations

 
Jeff Hagstrom
Regular Advisor

startup scripts locations

9000/k460 HPUX-11.00
There is a startup script that is called by UNIX when a machine is coming up that calls our database startup script. What scripts are run at the start up process that would be after the rc#.d files?
8 REPLIES 8
Jeff Schussele
Honored Contributor

Re: startup scripts locations

Hi Jeff,

All scripts are located in /sbin/init.d & have standard descriptive (hopefully) names. Then the scripts in rc2.d, rc3.d, etc are linked back to these init.d scripts & named so that there is order in their startup.
Scripts starting with "S" are start scripts. If they start with "K" they're stop (kill) scripts. The numbers following the S or K are what control the start/stop order.
The scripts that are run are in the /sbin/rcX.d directories, so start you're search there.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
A. Clay Stephenson
Acclaimed Contributor

Re: startup scripts locations

Essentially none if you are in a high rcN.d file although there could be an entry with a 'once' or 'sysinit' tag in /etc/inittab. Man inittab for details.
If it ain't broke, I can fix that.
Helen French
Honored Contributor

Re: startup scripts locations

The startup rc scripts are in /sbin/init.d directory. You can find the rc links in /sbin/rcX.d.
Life is a promise, fulfill it!
Marco Santerre
Honored Contributor

Re: startup scripts locations

Usually, what you will find in the /sbin/rc#.d are links that starts with S (for startup) or K (for when you shutdown). They will link to a script located in /sbin/init.d (usually). Probably what you are looking for is a link in the rc3.d that links to a /sbin/init.d script for your database.
Cooperation is doing with a smile what you have to do anyhow.
James R. Ferguson
Acclaimed Contributor

Re: startup scripts locations

Hi Jeff:

An excellent (still valid) overview of everything you ever wanted to know about the 'rc' startup paradigm is found here:

http://docs.hp.com/hpux/onlinedocs/os/startup.pdf

Regards!

...JRF...
melvyn burnard
Honored Contributor

Re: startup scripts locations

take a read of
/usr/share/doc/start_up.txt
This should explain it all
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Iain F. Brown
Valued Contributor

Re: startup scripts locations

If you check /etc/rc.log it will show you all the scripts that are invoked at startup. Maybe entries in /etc/inittab have been added to start the database.

Iain
Jeff Hagstrom
Regular Advisor

Re: startup scripts locations

ONE OTHER PLACE IS IN THE:
/sbin/rc file