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
# 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 ||||||||||||||||||||
ARGV="-h"
fi
-case $ARGV in
+case $ACMD in
start|stop|restart|graceful|graceful-stop)
$HTTPD -k $ARGV
ERROR=$?