Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Re: where to put in /sbin/rc3.d
  2001-04-23  2:43 where to put in /sbin/rc3.d Pui Ming WONG
@ 2001-04-22 12:51 ` Mark Garrett
  2001-04-22 12:59 ` Jack Patteeuw
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Garrett @ 2001-04-22 12:51 UTC (permalink / raw)


in article 9c04ta$j4o$1@net44p.hkbu.edu.hk, Pui Ming WONG at
s11976@net2.hkbu.edu.hk wrote on 23/04/2001 12:43:

> want to start up the thirty party "Squid" reverse
> proxy server upon bootup
> Think i should create a link under
> /sbin/rc3.d like S66squid which links to
> ../init.d/squid, a shell script to start/stop the thing
> 
> But how do i know which number to use
> (as i see there are other higher number ones like S93some-process)
> or i just make up a number
> Please advice

The number of purely arbitrary and used to order execution of startup. I use
S87squid but its an ordering choice. Here is the code from /sbin/rc3 that
processes the startup files ;-
if [ -d /sbin/rc3.d ]; then
        for f in /sbin/rc3.d/S*
        do
                if [ -s $f ]; then

                        # Invoke executable startup scripts with the shell
                        # interpreter defined within each startup script.
                        # Non-executable startup scripts will be invoked
                        # with /sbin/sh by default.
                        if [ -x $f ]; then
                                $f start
                        else
                                /sbin/sh $f start
                        fi
                fi
        done
fi

As you can see it forces it to run as bourne shell if its not executable (ie
/sbin/sh) and is in the directory order as per the for f in /sbin/rc3.d/S*

    Cheers
        Mark :)



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: where to put in /sbin/rc3.d
  2001-04-23  2:43 where to put in /sbin/rc3.d Pui Ming WONG
  2001-04-22 12:51 ` Mark Garrett
@ 2001-04-22 12:59 ` Jack Patteeuw
  1 sibling, 0 replies; 3+ messages in thread
From: Jack Patteeuw @ 2001-04-22 12:59 UTC (permalink / raw)


Items in rc3.d are started up in alphabetical order. (i.e. S01... before
S02..., etc). Pick a number that you like that occurs AFTER any other
sub-systems required for your app.  For more info try "man init"

Actually, I like my squid lightly breaded and fried.


Jack Patteeuw

Pui Ming WONG wrote:
> 
> want to start up the thirty party "Squid" reverse
> proxy server upon bootup
> Think i should create a link under
> /sbin/rc3.d like S66squid which links to
> ../init.d/squid, a shell script to start/stop the thing
> 
> But how do i know which number to use
> (as i see there are other higher number ones like S93some-process)
> or i just make up a number
> Please advice


^ permalink raw reply	[flat|nested] 3+ messages in thread

* where to put in /sbin/rc3.d
@ 2001-04-23  2:43 Pui Ming WONG
  2001-04-22 12:51 ` Mark Garrett
  2001-04-22 12:59 ` Jack Patteeuw
  0 siblings, 2 replies; 3+ messages in thread
From: Pui Ming WONG @ 2001-04-23  2:43 UTC (permalink / raw)


want to start up the thirty party "Squid" reverse
proxy server upon bootup
Think i should create a link under 
/sbin/rc3.d like S66squid which links to
../init.d/squid, a shell script to start/stop the thing

But how do i know which number to use
(as i see there are other higher number ones like S93some-process)
or i just make up a number 
Please advice


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-04-23  2:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-23  2:43 where to put in /sbin/rc3.d Pui Ming WONG
2001-04-22 12:51 ` Mark Garrett
2001-04-22 12:59 ` Jack Patteeuw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox