apachectl restart and configtest

2008-09-02 Thread Matthew Hodgson

Hi all,

Is there a reason why apachectl no longer asserts a successful 
configtest before trying to restarting or gracefully-restarting a 
running server?  This was the behaviour back in the days of 1.3, and 
avoided many a disaster where a running server was accidentally killed 
by a broken config.  Confusingly, the documentation still claims this 
behaviour to be the case (grep 
http://httpd.apache.org/docs/trunk/stopping.html for syntax check). 
Nowadays (as of 2.2.x, at least), the httpd still kills the existing 
server on -k restart or graceful - even if its internal configtest fails.


It seems the original behaviour got killed off in 
http://svn.apache.org/viewvc/httpd/httpd/trunk/support/apachectl.in?r1=94653r2=95307 
back in 2002.  Is there any chance it can be reinstated?  Someone filed 
a bug back in April of this year for this at 
https://issues.apache.org/bugzilla/show_bug.cgi?id=45103 - and I've just 
posted a trivial patch against trunk there which provides the required 
functionality.


thanks,

Matthew.

--
Matthew Hodgson [EMAIL PROTECTED]
Media  Systems Project Manager
Tel: +44 (0) 845 666 7778
http://www.mxtelecom.com


configtest

2001-12-25 Thread Don Hughes

Trying to use configtest with a httpd.conf file that has a line like:

VirtualHost 82

gives:

../apachectl: line 187: 2066 Sementation fault $HTTPD - t

...don
[EMAIL PROTECTED]




Re: configtest

2001-12-25 Thread Jeff Trawick

Don Hughes [EMAIL PROTECTED] writes:

 Trying to use configtest with a httpd.conf file that has a line like:
 
 VirtualHost 82
 
 gives:
 
 ../apachectl: line 187: 2066 Sementation fault $HTTPD - t

cool!  easy to reproduce, probably easy to fix...  

keep those cards and letters coming

-- 
Jeff Trawick | [EMAIL PROTECTED] | PGP public key at web site:
   http://www.geocities.com/SiliconValley/Park/9289/
 Born in Roswell... married an alien...