[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

9848.0. "How are filenumbers assigned for files in /sbin/rc3.d" by SMAUG::GARROD (IBM Interconnect Engineering) Thu May 15 1997 18:49

    How are the filenames in the:
    
    /sbin/rc3.d
    
    directory assigned to layered products? In other words how do I know
    what two digit numbers (ie nn.mm) to assign to my layered product when
    creating a file link in the /sbin/rc3.d directory of the form:
    
    Snn.mmPRODNAME
    
    I want to maqke sure I follow the stabdard for my layered product. But
    I don;t know what the standard is or where it is documented.
    
    Thanks,
    
    Dave
T.RTitleUserPersonal
Name
DateLines
9848.1BIGUN::nessus.cao.dec.com::MayneA wretched hive of scum and villainyThu May 15 1997 19:537
As far as I can figure in my ignorance, you put the file where it needs to go in 
the startup. For instance, if your product needs the network to be up before it 
starts, don't put your startup file before the network startup file.

The digits are an ordering mechanism, not an assigned numbers list.

PJDM
9848.2Is there a standard way to pick a number?EDSCLU::GARRODIBM Interconnect EngineeringFri May 16 1997 11:2316
    Re: .1
    
    Thanks for your reply.

    Re:
    
>The digits are an ordering mechanism, not an assigned numbers list.

    Yes I recognise that. Does it matter if I pick a number the same as
    somebodyu elses? How do I go about picking a number? Should I just pick
    a number in the S90 range eg S91 so I know that most things are already
    installed? Is thus documemted somewhere? 
    
    Thanks,
    
    Dave
9848.3INDYX::ramRam Rao, PBPGINFWMYFri May 16 1997 11:4123
The scripts in /sbin/rc3.d are invoked by the script /sbin/rc3. The
code fragment where this happens is:

	if [ -d /sbin/rc3.d ]; then
	        for f in /sbin/rc3.d/S*
	        do
	                if [ -s $f ]; then
	                        /sbin/sh $f start
	                fi
	        done
	fi

The order in which the rc3.d scripts get invoked can be determined
by the simulating above, by typing the following at the command line:

	cd /sbin/rc3.d
	echo S*

You will notice that there is no problem if multiple scripts all begin
with say S90; they will simply be enumerated in the order which the
shell does the wildcarding (which I believe is lexicographic).

Ram