1833803 Members
2337 Online
110063 Solutions
New Discussion

Startup

 
SOLVED
Go to solution
Ian Warner
Trusted Contributor

Startup

When Unix boots, what file(s) are checked to see what startup processes are run?

Running 11i.
Why did anyone invent unix?
8 REPLIES 8
Steven E. Protter
Exalted Contributor
Solution

Re: Startup

http://docs.hp.com/en/B2355-90672/ch02s04.html

Applies to servers to.

/sbin/init.d
# contains startup scripts

/sbin/rc1.d rc2.d rc3.d
# contains soft links to startup scripts.
Softlink starting with a capital S starts something.
Softlink starting with a K stops something.

A script called init starts them all.

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: Startup

Hi Ian:

The standard HP-UX startup sequence is controled by '/sbin/rc' and the files in /sbin/init.d' ordered by the collating sequence of the names of symbolic link files called (S)tart and (K)ill scripts in '/sbin/rc?.d/'. Configuration variables for these scripts are found in 'etc/rc.config.d'.

The manpages for 'rc(1)' give a good, quick overview.

The document, below, gives an in-depth view:

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

Regards!

...JRF...
Doug Burton
Respected Contributor

Re: Startup

As mentioned above the initial scripts are found in the /sbin/init.d dir. However, some of those files will look in the /etc/rc.config.d dir to see if they will fire off.
Zeev Schultz
Honored Contributor

Re: Startup

And in /etc/rc.log you can see boot time messages from all those rc* processes...
So computers don't think yet. At least not chess computers. - Seymour Cray
Arunvijai_4
Honored Contributor

Re: Startup

Hi Ian,

To see what startup programs are configured, you can take a look at, /sbin/init.d/ dir. It has got all the entries what you are looking for.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Cem Tugrul
Esteemed Contributor

Re: Startup

Hi Ian,
here is an attachment about setting startup
scripts
Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Cem Tugrul
Esteemed Contributor

Re: Startup

Hi Ian,
here is an attachment about setting startup
scripts
Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
DCE
Honored Contributor

Re: Startup

Ian,

The HPUX startup scripts are, as the others have said, in multiple locations

/sbin/init.d
This scripts in this directory contain the commands to start and stop an application (all in one script per application). ther is a template script in this directory as well. The scripts do not actually get executed from here

/sbin/rcX.d
These directories actually execute the start/stop portions of the script. the X in the dorectory name denote the run level at the command execute. You will also note that the links in these directories all start with either a K or S followed by a number and a name. The S means run the start portion of the script, the K means run the stop portion of the script. The S's are eceuted as the system comes up, the K's are executed as the system comes down. You will find an interesting fact in the number portion of the name. the numbers of the complementry S and K links should add up to 1000.

/etc/rc.config.d
The directory contains a flag fle referenced in the dcript in /sbin/init.d. If the flag is 0 the script will not run. If it is 1, the script will run. This is useful if you do not want an application to startup.