httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martyn Longhurst (MJ)" <>
Subject RE: [users@httpd] Getting apache to boot
Date Fri, 22 Nov 2002 11:43:10 GMT

Thanks. I got tomcat to boot okay, stopping, well that's another
matter. Currently I'm running an Ultra Sparc 10 with Solaris 8.
Unfortunately I had an apache script already in the /etc/init.d
directory, but it wasn't working at all, so I started playing and well
. . . won't go any further. The link files are situated in /etc/rc3.d
and /etc/rc0.d for start and kill respectively. What I need to know at
the moment, is how to write a case/if statement that checks whether
the service is running and then either stops or starts it depending on
the outcome.

Unfortunately for me, I was born and bred a Microsoft junky (Currently
due to ease of use - Bill Gates Rulez), so I'm struggling with all the


 -----Original Message-----
From: 	Boyle Owen [] 
Sent:	22 November 2002 11:14
Subject:	RE: [users@httpd] Getting apache to boot

It would be nice to know what brand of Unix.... etc.

The basic idea is that the booting system goes through a series of run
levels. On my Solaris system, when it gets to run level 3, it looks in
the directory /etc/rc3.d and takes any script which begins with an "S"
in the order of the number following the S, so it eventually comes to
script called "S50apache". It then executes that script with the
argument "start" (that's what the S is for). 

Now, S50apache is really a symbolic link to /etc/init.d/apache which
simply a copy of /usr/local/apache/bin/apachctl. So all that really
happens is that we execute "apachectl start".

This may be subtly different on your machine (I know linux tends to
/etc/rc.local/rc3.d - I think...) but the basic idea is the same. Just
poke around in /etc until you find the "Snnprog" scripts... Have a
at the one for sendmail (probably S88sendmail) to get the general

Just make sure you start apache pretty late on - it needs lots of
daemons to be running before it will work (e.g. TP/IP stack, inetd


Owen Boyle

>-----Original Message-----
>From: Martyn Longhurst (MJ) []
>Sent: Freitag, 22. November 2002 10:04
>Subject: [users@httpd] Getting apache to boot
>I have been trying now for a while to get apache to start when Unix
>loads up. I have managed to get it right with Tomcat, but Apache just
>doesn't want to work. Any suggestions?
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute,
or copy any part of this message if you are not the intended
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message