From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,7b6ddd8f972f7567 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-04-22 05:51:02 PST Path: newsfeed.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!newsstand.cit.cornell.edu!news.stealth.net!intgwpad.nntp.telstra.net!news-server.bigpond.net.au!not-for-mail From: Mark Garrett Newsgroups: comp.unix.tru64 Subject: Re: where to put in /sbin/rc3.d Organization: Garetech Computer Solutions Message-ID: References: <9c04ta$j4o$1@net44p.hkbu.edu.hk> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Date: Sun, 22 Apr 2001 12:51:01 GMT NNTP-Posting-Host: 144.132.244.163 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 987943861 144.132.244.163 (Sun, 22 Apr 2001 22:51:01 EST) NNTP-Posting-Date: Sun, 22 Apr 2001 22:51:01 EST Xref: newsfeed.google.com comp.unix.tru64:2103 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 :)