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

41a6c3
diff --git a/docs/man/apachectl.8 b/docs/man/apachectl.8
41a6c3
index 054550f..4bfc7cb 100644
41a6c3
--- a/docs/man/apachectl.8
41a6c3
+++ b/docs/man/apachectl.8
41a6c3
@@ -77,7 +77,7 @@ status
41a6c3
 Displays a brief status report\&. Similar to the fullstatus option, except that the list of requests currently being served is omitted\&.  
41a6c3
 .TP
41a6c3
 graceful
41a6c3
-Gracefully restarts the Apache httpd daemon\&. If the daemon is not running, it is started\&. This differs from a normal restart in that currently open connections are not aborted\&. A side effect is that old log files will not be closed immediately\&. This means that if used in a log rotation script, a substantial delay may be necessary to ensure that the old log files are closed before processing them\&. This command automatically checks the configuration files as in configtest before initiating the restart to make sure Apache doesn't die\&. This is equivalent to apachectl -k graceful\&.  
41a6c3
+Gracefully restarts the Apache httpd daemon\&. If the daemon is not running, it is not started\&. This differs from a normal restart in that currently open connections are not aborted\&. A side effect is that old log files will not be closed immediately\&. This means that if used in a log rotation script, a substantial delay may be necessary to ensure that the old log files are closed before processing them\&. This command automatically checks the configuration files as in configtest before initiating the restart to make sure Apache doesn't die\&. This is equivalent to apachectl -k graceful\&.  
41a6c3
 .TP
41a6c3
 graceful-stop
41a6c3
 Gracefully stops the Apache httpd daemon\&. This differs from a normal stop in that currently open connections are not aborted\&. A side effect is that old log files will not be closed immediately\&. This is equivalent to apachectl -k graceful-stop\&.  
41a6c3
diff --git a/support/apachectl.in b/support/apachectl.in
41a6c3
index 2d59623..10fc280 100644
41a6c3
--- a/support/apachectl.in
41a6c3
+++ b/support/apachectl.in
41a6c3
@@ -93,9 +93,9 @@ function testconfig() {
41a6c3
 # httpd is denied terminal access in SELinux, so run in the
41a6c3
 # current context to get stdout from $HTTPD -t.
41a6c3
 if test -x /usr/sbin/selinuxenabled && /usr/sbin/selinuxenabled; then
41a6c3
-  runcon -- `id -Z` $HTTPD $OPTIONS -t
41a6c3
+  runcon -- `id -Z` /usr/sbin/httpd $OPTIONS -t
41a6c3
 else
41a6c3
-  $HTTPD $OPTIONS -t
41a6c3
+  /usr/sbin/httpd $OPTIONS -t
41a6c3
 fi
41a6c3
 ERROR=$?
41a6c3
 }
41a6c3
@@ -134,7 +134,7 @@ fullstatus)
41a6c3
     $LYNX $STATUSURL
41a6c3
     ;;
41a6c3
 *)
41a6c3
-    $HTTPD $OPTIONS "$@"
41a6c3
+    /usr/sbin/httpd $OPTIONS "$@"
41a6c3
     ERROR=$?
41a6c3
 esac
41a6c3