From: jean-paul Fermiger <ext.datavance.fermiger@dsit.sncf.fr>
Subject: Re: Automatic startup of httpd
Date: 2000/08/22 [thread overview]
Message-ID: <39A2A054.30C6CEE3@dsit.sncf.fr> (raw)
In-Reply-To: Pine.SOL.3.96.1000822113702.404U-100000@thale
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).
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
2000-08-22 4:00 ` jean-paul Fermiger [this message]
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