From: mohr@fauia28.informatik.uni-erlangen.de (Marcus Mohr)
Subject: Re: Automatic startup of httpd
Date: 2000/08/22 [thread overview]
Message-ID: <8ntpv9$od8$1@rznews2.rrze.uni-erlangen.de> (raw)
In-Reply-To: Pine.SOL.3.96.1000822113702.404U-100000@thale
In article <Pine.SOL.3.96.1000822113702.404U-100000@thale>,
Keith Bradnam <keith@thale.nott.ac.uk> 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
========================================================================
next prev parent reply other threads:[~2000-08-22 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-22 4:00 Automatic startup of httpd Keith Bradnam
2000-08-22 4:00 ` Marcus Mohr [this message]
2000-08-22 4:00 ` jean-paul Fermiger
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox