From: William A. Rowe Jr Date: Sat, 10 Feb 2007 18:41:22 +0000 (+0000) Subject: Simple patch to permit syntax such as... X-Git-Tag: 2.3.0~1908 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4f597c8749a542f42b2c809c185f431a00660ed;p=thirdparty%2Fapache%2Fhttpd.git 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@505739 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/apachectl.in b/support/apachectl.in index d4dff38a470..0bb7ce5e49a 100644 --- a/support/apachectl.in +++ b/support/apachectl.in @@ -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=$?