diff options
| author | Joe Orton <jorton@redhat.com> | 2017-07-17 11:39:57 +0100 |
|---|---|---|
| committer | Joe Orton <jorton@redhat.com> | 2017-07-17 11:39:57 +0100 |
| commit | e9d2120fbfd6cf56ab24c09c3d5773f19d485492 (patch) | |
| tree | 5ce3c14add62e2b964cd7206a0376816fb69ae4c | |
| parent | 3150aa97f5e624e42fb242ba6cdecad36bdcdfd1 (diff) | |
| download | httpd-e9d2120fbfd6cf56ab24c09c3d5773f19d485492.tar.gz httpd-e9d2120fbfd6cf56ab24c09c3d5773f19d485492.tar.xz httpd-e9d2120fbfd6cf56ab24c09c3d5773f19d485492.zip | |
switch to event by default for Fedora 27 and later (#1471708)
Resolves: rhbz#1471708
| -rw-r--r-- | 00-mpm.conf | 2 | ||||
| -rw-r--r-- | httpd.spec | 18 |
2 files changed, 17 insertions, 3 deletions
diff --git a/00-mpm.conf b/00-mpm.conf index 7bfd1d4..75d90e9 100644 --- a/00-mpm.conf +++ b/00-mpm.conf @@ -3,7 +3,7 @@ # prefork MPM: Implements a non-threaded, pre-forking web server # See: http://httpd.apache.org/docs/2.4/mod/prefork.html -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 # multi-threaded multi-process web server @@ -4,11 +4,16 @@ %define mmn 20120211 %define mmnisa %{mmn}%{__isa_name}%{__isa_bits} %define vstring %(source /etc/os-release; echo ${REDHAT_SUPPORT_PRODUCT}) +%if 0%{?fedora} < 27 +%global mpm prefork +%else +%global mpm event +%endif Summary: Apache HTTP Server Name: httpd Version: 2.4.27 -Release: 2%{?dist} +Release: 3%{?dist} URL: http://httpd.apache.org/ Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2 Source1: index.html @@ -230,7 +235,8 @@ fi xmlto man $RPM_SOURCE_DIR/httpd.service.xml -: Building with MMN %{mmn}, MMN-ISA %{mmnisa} and vendor string '%{vstring}' +: Building with MMN %{mmn}, MMN-ISA %{mmnisa} +: Default MPM is %{mpm}, vendor string is '%{vstring}' %build # forcibly prevent use of bundled apr, apr-util, pcre @@ -314,6 +320,11 @@ for f in 00-base.conf 00-mpm.conf 00-lua.conf 01-cgi.conf 00-dav.conf \ $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d/$f done +sed -i '/^#LoadModule mpm_%{mpm}_module /s/^#//' \ + $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d/00-mpm.conf +touch -r $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d/00-mpm.conf \ + $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d/00-mpm.conf + # install systemd override drop directory # Web application packages can drop snippets into this location if # they need ExecStart[pre|post]. @@ -692,6 +703,9 @@ rm -rf $RPM_BUILD_ROOT %{_rpmconfigdir}/macros.d/macros.httpd %changelog +* Mon Jul 17 2017 Joe Orton <jorton@redhat.com> - 2.4.27-3 +- switch to event by default for Fedora 27 and later (#1471708) + * Wed Jul 12 2017 Luboš Uhliarik <luhliari@redhat.com> - 2.4.27-2 - Resolves: #1469959 - httpd update cleaned out /etc/sysconfig |
