Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Re: Automatic startup of httpd
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Marcus Mohr @ 2000-08-22  4:00 UTC (permalink / raw)


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

========================================================================



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Automatic startup of httpd
  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
  1 sibling, 0 replies; 3+ messages in thread
From: jean-paul Fermiger @ 2000-08-22  4:00 UTC (permalink / raw)


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).











^ permalink raw reply	[flat|nested] 3+ messages in thread

* Automatic startup of httpd
@ 2000-08-22  4:00 Keith Bradnam
  2000-08-22  4:00 ` Marcus Mohr
  2000-08-22  4:00 ` jean-paul Fermiger
  0 siblings, 2 replies; 3+ messages in thread
From: Keith Bradnam @ 2000-08-22  4:00 UTC (permalink / raw)



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 





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-08-22  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox