httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@engelschall.com>
Subject Re: cvs commit: apache-1.3/src/support httpd.8 apachectl apachectl.1
Date Thu, 11 Jun 1998 07:22:35 GMT

In article <Pine.BSF.3.95q.980610123459.29515T-100000@valis.worldgate.com> you wrote:
> On 10 Jun 1998 rse@hyperreal.org wrote:

>> rse         98/06/10 05:08:52
>> 
>>   Modified:    src      CHANGES
>>                src/main http_main.c
>>                src/support httpd.8 apachectl apachectl.1
>>   Log:
>>   Add httpd -t (test) option for running configuration syntax tests only.  If
>>   something is broken it complains and exits with a return code non-equal to 0.
>>   
>>   This can be used manually by the user to check the Apache configuration after
>>   editing and is also automatically used by apachectl on (graceful) restart
>>   command to make sure Apache doesn't die on restarts because of a configuration
>>   which is now broken since the last (re)start.
>>   
>>   This way `apachectl restart' can be used inside cronjobs without having to
>>   expect Apache to be falling down. Additionally the httpd -t can be run via
>>   `apachectl configtest'.

> Would it not be wise to have apachectl configtest actually output
> something, at least if it fails and possible if it suceeds too?

It does, try it out. It either says "Syntax Ok" or reports
the details of the error.
                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message