1826061 Members
4012 Online
109690 Solutions
New Discussion

rc scripts

 
panchpan
Regular Advisor

rc scripts

Hello.
Could you please provide some information about rc scripts? When a server reboot happens, will they automatically start the applications?

Thanks.
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: rc scripts

If you have set them up properly, if the configuration files are properly set, if the symbolic links are in place then yes.

The process is well explained in the rc man pages. Do a "man rc".
If it ain't broke, I can fix that.
DCE
Honored Contributor

Re: rc scripts


Review this thread - it has several useful doc's in it that explain the start/stop process
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=999630
hpuxrox
Respected Contributor

Re: rc scripts

Depends on their location and the systems run level.
Ignacio Javier
Regular Advisor

Re: rc scripts


Hello:

A little description:

"
The job of the sequencer script /sbin/rc is to invoke the individual startup scripts in
/sbin/init.d/. However, /sbin/rc does not invoke these scripts directly, but rather
through a series of symbolic links (Execution Script Links) in the /sbin/rc?.d/ directories.
For example, if your system is booting to run level 3 (invoking all services, including CDE),
then /sbin/rc will invoke all the scripts (symbolic links) in the /sbin/rc2.d/, and
/sbin/rc3.d/ directories."


"The names of these links in /sbin/rc?d/ directories begin with a K or an S. /sbin/rc will
invoke the ones that begin with a K using the 'stop' parameter and the ones that begin with an
S using the 'start' parameter. /sbin/rc does not really care about the serial numbers in the
link names after the K or S; they are there so that you can configure the order in which the
scripts are run, since they run in alphanumeric order. If you don't care when your software
starts, use serial number 900 for an S file and 100 for a K file, which are guaranteed not to conflict with existing serial numbers."


I hope it helps

Regards