On Mon, 22 Oct 2001, Sander Temme wrote:

> on 10/22/01 9:17 PM, Stas Bekman at [EMAIL PROTECTED] wrote:
>
> > Either httpd returns a wrong status here (too early?):
> >
> > if $HTTPD ; then
> >    echo "$0 $ARG: httpd started"
> >
> > or may be an additional check for pid file should be done and report
> > success/failure only then?
>
> Apachectl basically never looks back. I posted a small patch a while ago
> that waits for a couple of seconds after starting httpd and then checks the
> presence of the pid file, but it wasn't picked up.

Right now we detach() (main/httpd_main.c) far before any of the usual
errors are about to occur which will inhibit apache from running (i.e.
DocumentRoot not found, Cannot bind to port 80, etc).

It would not be too hard to shuffle things around a little -or- to
actually do(or test for) the things which commonly inhibit startup earlier
- and allow apache to give a sensible exit code. It might even make sense
to allow some early hooks during this phase - to make interactive stuff -
such as asking for an SSL password less hacky.

Dw

Reply via email to