From d4f597c8749a542f42b2c809c185f431a00660ed Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Sat, 10 Feb 2007 18:41:22 +0000 Subject: [PATCH] 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 --- support/apachectl.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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=$? -- 2.47.2