]> granicus.if.org Git - apache/commitdiff
Simple patch to permit syntax such as...
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sat, 10 Feb 2007 18:41:22 +0000 (18:41 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sat, 10 Feb 2007 18:41:22 +0000 (18:41 +0000)
  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.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@505739 13f79535-47bb-0310-9956-ffa450edef68

support/apachectl.in

index d4dff38a470e33181ece88ec4eefe37fbbbcfc2d..0bb7ce5e49ae0e545d6088198133a58bea19ed96 100644 (file)
@@ -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 @@ if [ "x$ARGV" = "x" ] ; then
     ARGV="-h"
 fi
 
-case $ARGV in
+case $ACMD in
 start|stop|restart|graceful|graceful-stop)
     $HTTPD -k $ARGV
     ERROR=$?