From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,c7e4d24f866a78d5 X-Google-Attributes: gidfa528,public From: jean-paul Fermiger Subject: Re: Automatic startup of httpd Date: 2000/08/22 Message-ID: <39A2A054.30C6CEE3@dsit.sncf.fr>#1/1 X-Deja-AN: 661172860 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: S.N.C.F. (French Railways) Mime-Version: 1.0 Reply-To: ext.datavance.fermiger@sncf.fr Newsgroups: comp.unix.tru64 Keith Bradnam wrote: > Hi, > > I have recently installed the apache web server on our XP1000 (running > Tru64 5.0a). > > If I want the httpd process to fire up whenever the machine is booted, do > I have to: > > a) Just add an entry into /etc/inittab > > and/or > > b) Add an entry somewhere in /sbin/rc3.d ? > If so, could it just be something as simple as: > > #!/sbin/sh > /usr/local/apache_1.3.12/src/httpd > > ??? > > Keith > > P.S. There was a very old newsgroup posting relating to this, but it's > from 1997 so I thought I'd check to see if anything has changed since > then. > > ~ Keith Bradnam - Developer, Arabidopsis Genome Resource (AGR) > ~ Nottingham Arabidopsis Stock Centre - http://nasc.nott.ac.uk/ > ~ University Park, University of Nottingham, NG7 2RD, UK > ~ Tel: (0115) 951 3091 answer is b) + The script in /sbin (rc0, rc2 and rc3) are call at init time (0: halt, 2: shutdown (single user) or 3: boot multi-user) executing all the script in directories /sbin/rc0.d, /sbin/rc2.d or /sbin/rc3.d in order starting by K (for kill, I suppose), and S after (for start, I suppose again) This files are links to scripts files (in /sbin/init.d) and are call with arguments 'stop' if starting by K and 'start' if starting by S. See /sbin/init.d/syslog (for example). So you must create two links and one script (whith two args: start and stop).