altarch-user / rpms / httpd

Forked from rpms/httpd 2 years ago
Clone

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

008793
diff --git a/docs/man/apachectl.8 b/docs/man/apachectl.8
008793
index 054550f..4bfc7cb 100644
008793
--- a/docs/man/apachectl.8
008793
+++ b/docs/man/apachectl.8
008793
@@ -77,7 +77,7 @@ status
008793
 Displays a brief status report\&. Similar to the fullstatus option, except that the list of requests currently being served is omitted\&.  
008793
 .TP
008793
 graceful
008793
-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\&.  
008793
+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\&.  
008793
 .TP
008793
 graceful-stop
008793
 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\&.  
008793
diff --git a/support/apachectl.in b/support/apachectl.in
008793
index 2d59623..10fc280 100644
008793
--- a/support/apachectl.in
008793
+++ b/support/apachectl.in
008793
@@ -93,9 +93,9 @@ function testconfig() {
008793
 # httpd is denied terminal access in SELinux, so run in the
008793
 # current context to get stdout from $HTTPD -t.
008793
 if test -x /usr/sbin/selinuxenabled && /usr/sbin/selinuxenabled; then
008793
-  runcon -- `id -Z` $HTTPD $OPTIONS -t
008793
+  runcon -- `id -Z` /usr/sbin/httpd $OPTIONS -t
008793
 else
008793
-  $HTTPD $OPTIONS -t
008793
+  /usr/sbin/httpd $OPTIONS -t
008793
 fi
008793
 ERROR=$?
008793
 }
008793
@@ -134,7 +134,7 @@ fullstatus)
008793
     $LYNX $STATUSURL
008793
     ;;
008793
 *)
008793
-    $HTTPD $OPTIONS "$@"
008793
+    /usr/sbin/httpd $OPTIONS "$@"
008793
     ERROR=$?
008793
 esac
008793