41a6c3
41a6c3
Upstream-Status: vendor specific patch
41a6c3
41a6c3
diff --git a/support/apachectl.in b/support/apachectl.in
41a6c3
index c6ac3ea..2599386 100644
41a6c3
--- a/support/apachectl.in
41a6c3
+++ b/support/apachectl.in
41a6c3
@@ -100,9 +100,24 @@ fi
41a6c3
 ERROR=$?
41a6c3
 }
41a6c3
 
41a6c3
+if [ "x$2" != "x" ] ; then
41a6c3
+    echo Passing arguments to httpd using apachectl is no longer supported.
41a6c3
+    echo You can only start/stop/restart httpd using this script.
41a6c3
+    echo If you want to pass extra arguments to httpd, edit the
41a6c3
+    echo /etc/sysconfig/httpd config file.
41a6c3
+fi
41a6c3
+
41a6c3
 case $ACMD in
41a6c3
-start|stop|restart|graceful|graceful-stop)
41a6c3
-    $HTTPD $OPTIONS -k $ARGV
41a6c3
+start|stop|restart|status)
41a6c3
+    /usr/bin/systemctl $ACMD httpd.service
41a6c3
+    ERROR=$?
41a6c3
+    ;;
41a6c3
+graceful)
41a6c3
+    /usr/bin/systemctl reload httpd.service
41a6c3
+    ERROR=$?
41a6c3
+    ;;
41a6c3
+graceful-stop)
41a6c3
+    /usr/bin/systemctl stop httpd.service
41a6c3
     ERROR=$?
41a6c3
     ;;
41a6c3
 startssl|sslstart|start-SSL)
41a6c3
@@ -114,10 +129,6 @@ startssl|sslstart|start-SSL)
41a6c3
 configtest)
41a6c3
     testconfig
41a6c3
     ;;
41a6c3
-status)
41a6c3
-    checklynx
41a6c3
-    $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } '
41a6c3
-    ;;
41a6c3
 fullstatus)
41a6c3
     checklynx
41a6c3
     $LYNX $STATUSURL