You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2007/02/10 19:41:22 UTC
svn commit: r505739 - /httpd/httpd/trunk/support/apachectl.in
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=$?