Blame SOURCES/httpd-2.4.6-apachectl-httpd-env.patch

f0c688
--- a/support/apachectl.in
f0c688
+++ b/support/apachectl.in
f0c688
@@ -93,9 +93,9 @@ function testconfig() {
f0c688
 # httpd is denied terminal access in SELinux, so run in the
f0c688
 # current context to get stdout from $HTTPD -t.
f0c688
 if test -x /usr/sbin/selinuxenabled && /usr/sbin/selinuxenabled; then
f0c688
-  runcon -- `id -Z` $HTTPD $OPTIONS -t
f0c688
+  runcon -- `id -Z` $sbindir/httpd $OPTIONS -t
f0c688
 else
f0c688
-  $HTTPD $OPTIONS -t
f0c688
+  $sbindir/httpd $OPTIONS -t
f0c688
 fi
f0c688
 ERROR=$?
f0c688
 }
f0c688
@@ -134,7 +134,7 @@ fullstatus)
f0c688
     $LYNX $STATUSURL
f0c688
     ;;
f0c688
 *)
f0c688
-    $HTTPD $OPTIONS "$@"
f0c688
+    $sbindir/httpd $OPTIONS "$@"
f0c688
     ERROR=$?
f0c688
 esac
f0c688