add notes on enabling httpd_graceful_shutdown boolean for prefork

This commit is contained in:
Joe Orton 2017-10-03 09:16:29 +01:00
parent d31ea66d9d
commit 6d96e6a193
3 changed files with 32 additions and 4 deletions

View File

@ -1,8 +1,13 @@
# Select the MPM module which should be used by uncommenting exactly # Select the MPM module which should be used by uncommenting exactly
# one of the following LoadModule lines: # one of the following LoadModule lines. See the httpd.service(8) man
# page for more information on changing the MPM.
# prefork MPM: Implements a non-threaded, pre-forking web server # prefork MPM: Implements a non-threaded, pre-forking web server
# See: http://httpd.apache.org/docs/2.4/mod/prefork.html # See: http://httpd.apache.org/docs/2.4/mod/prefork.html
#
# NOTE: If enabling prefork, the httpd_graceful_shutdown SELinux
# boolean should be enabled, to allow graceful stop/shutdown.
#
#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so #LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
# worker MPM: Multi-Processing Module implementing a hybrid # worker MPM: Multi-Processing Module implementing a hybrid
@ -16,4 +21,3 @@
# See: http://httpd.apache.org/docs/2.4/mod/event.html # See: http://httpd.apache.org/docs/2.4/mod/event.html
# #
#LoadModule mpm_event_module modules/mod_mpm_event.so #LoadModule mpm_event_module modules/mod_mpm_event.so

View File

@ -166,6 +166,24 @@ Wants=network-online.target</programlisting>
--kill-who=main --signal=HUP httpd</command>.</para> --kill-who=main --signal=HUP httpd</command>.</para>
</refsect2> </refsect2>
<refsect2>
<title>Changing the default MPM (Multi-Processing Module)</title>
<para>httpd offers a choice of multi-processing modules (MPMs),
which can be configured in
<filename>/etc/httpd/conf.modules.d/00-mpm.conf</filename>. The
default is to use the <emphasis>@MPM@</emphasis> MPM.</para>
<para>If using the <emphasis>prefork</emphasis> MPM, the
"httpd_graceful_shutdown" SELinux boolean should also be
enabled, since with this MPM, httpd needs to establish TCP
connections to local ports to successfully complete a graceful
restart or shutdown. This boolean can be enabled by running the
command: <command>semanage boolean -m --on
httpd_graceful_shutdown</command></para>
</refsect2>
<refsect2> <refsect2>
<title>systemd integration and mod_systemd</title> <title>systemd integration and mod_systemd</title>

View File

@ -13,7 +13,7 @@
Summary: Apache HTTP Server Summary: Apache HTTP Server
Name: httpd Name: httpd
Version: 2.4.27 Version: 2.4.27
Release: 13%{?dist} Release: 14%{?dist}
URL: https://httpd.apache.org/ URL: https://httpd.apache.org/
Source0: https://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2 Source0: https://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
Source1: index.html Source1: index.html
@ -239,7 +239,10 @@ if test "x${vmmn}" != "x%{mmn}"; then
exit 1 exit 1
fi fi
xmlto man $RPM_SOURCE_DIR/httpd.service.xml sed 's/@MPM@/%{mpm}/' < $RPM_SOURCE_DIR/httpd.service.xml \
> httpd.service.xml
xmlto man ./httpd.service.xml
: Building with MMN %{mmn}, MMN-ISA %{mmnisa} : Building with MMN %{mmn}, MMN-ISA %{mmnisa}
: Default MPM is %{mpm}, vendor string is '%{vstring}' : Default MPM is %{mpm}, vendor string is '%{vstring}'
@ -688,6 +691,9 @@ rm -rf $RPM_BUILD_ROOT
%{_rpmconfigdir}/macros.d/macros.httpd %{_rpmconfigdir}/macros.d/macros.httpd
%changelog %changelog
* Tue Oct 3 2017 Joe Orton <jorton@redhat.com> - 2.4.27-14
- add notes on enabling httpd_graceful_shutdown boolean for prefork
* Fri Sep 22 2017 Joe Orton <jorton@redhat.com> - 2.4.27-13 * Fri Sep 22 2017 Joe Orton <jorton@redhat.com> - 2.4.27-13
- drop Requires(post) for mod_ssl - drop Requires(post) for mod_ssl