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: mohr@fauia28.informatik.uni-erlangen.de (Marcus Mohr) Subject: Re: Automatic startup of httpd Date: 2000/08/22 Message-ID: <8ntpv9$od8$1@rznews2.rrze.uni-erlangen.de>#1/1 X-Deja-AN: 661097314 References: Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@uni-erlangen.de X-Trace: rznews2.rrze.uni-erlangen.de 966945577 25000 131.188.67.28 (22 Aug 2000 11:59:37 GMT) Organization: University of Erlangen, Germany Mime-Version: 1.0 NNTP-Posting-Date: 22 Aug 2000 11:59:37 GMT Newsgroups: comp.unix.tru64 In article , Keith Bradnam writes: > > 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 No, you need not. > 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 Best way would be to create a script, that starts the daemon and put it in /sbin/init.d. In /sbin/rc3.d there usually aren't any scripts, but only links like, e.g. S00inet@ -> ../init.d/inet. If you switch to runlevel X, then all the scripts in rcX.d are executed. First the ones that start with a K (for kill) and then the ones that start with an S (for start). The scripts are called with "stop" as an argument if the link begins with K or "start" if it begins with S. The scripts execute in the order you get them with an ls, so the number is important. Your httpd script should come somewhere after basic network and stuff has been started. If you want to be real tidy, then you can put a K-link into /sbin/rc2.d, so your script can stop the httpd gets, when you change to runlevel 2 (multiuser state without network services). Greetings Marcus ======================================================================== Marcus Mohr @> IMMD 10 (Systemsimulation) - FAU Erlangen-Nuernberg /? e-mail ... Marcus.Mohr@informatik.uni-erlangen.de |\ Tel ...... 09131 / 85 - 28691 www ...... http://www10.informatik.uni-erlangen.de/~mohr ========================================================================