httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r505739 - /httpd/httpd/trunk/support/apachectl.in
Date Sat, 10 Feb 2007 18:41:22 GMT
Author: wrowe
Date: Sat Feb 10 10:41:22 2007
New Revision: 505739

URL: http://svn.apache.org/viewvc?view=rev&rev=505739
Log:
Simple patch to permit syntax such as...

  bin/apachectl start -X

or similar, based on evaluating only the first arg as an apxs 'command',
and permitting additional args in httpd-style syntax.

Modified:
    httpd/httpd/trunk/support/apachectl.in

Modified: httpd/httpd/trunk/support/apachectl.in
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/apachectl.in?view=diff&rev=505739&r1=505738&r2=505739
==============================================================================
--- httpd/httpd/trunk/support/apachectl.in (original)
+++ httpd/httpd/trunk/support/apachectl.in Sat Feb 10 10:41:22 2007
@@ -35,6 +35,7 @@
 # When multiple arguments are given, only the error from the _last_
 # one is reported.  Run "apachectl help" for usage info
 #
+ACMD="$1"
 ARGV="$@"
 #
 # |||||||||||||||||||| START CONFIGURATION SECTION  ||||||||||||||||||||
@@ -75,7 +76,7 @@
     ARGV="-h"
 fi
 
-case $ARGV in
+case $ACMD in
 start|stop|restart|graceful|graceful-stop)
     $HTTPD -k $ARGV
     ERROR=$?



Mime
View raw message