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