use OOMPolicy=continue in httpd.service, httpd@.service (#1947475)
Resolves: rhbz#1947475
This commit is contained in:
parent
28153dbcc1
commit
b4800b5892
@ -27,6 +27,7 @@ ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
|
|||||||
KillSignal=SIGWINCH
|
KillSignal=SIGWINCH
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
|
OOMPolicy=continue
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -225,15 +225,34 @@ Wants=network-online.target</programlisting>
|
|||||||
types. See
|
types. See
|
||||||
<citerefentry><refentrytitle>httpd_selinux</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>httpd_selinux</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
||||||
for more information.</para>
|
for more information.</para>
|
||||||
|
</refsect2>
|
||||||
|
|
||||||
<para>The httpd service enables <emphasis>PrivateTmp</emphasis>
|
<refsect2>
|
||||||
by default. The <filename>/tmp</filename> and
|
<title>Process policies and restrictions</title>
|
||||||
|
|
||||||
|
<para>The httpd service uses the following options:
|
||||||
|
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem><para><emphasis>PrivateTmp</emphasis> is enabled by
|
||||||
|
default. The <filename>/tmp</filename> and
|
||||||
<filename>/var/tmp</filename> directories available within the
|
<filename>/var/tmp</filename> directories available within the
|
||||||
httpd process (and CGI scripts, etc) are not shared by other
|
httpd process (and CGI scripts, etc) are not shared by other
|
||||||
processes. See
|
processes.</para></listitem>
|
||||||
<citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
|
||||||
for more information.</para>
|
|
||||||
|
|
||||||
|
<listitem><para><emphasis>OOMPolicy</emphasis> is set to
|
||||||
|
<emphasis>continue</emphasis> by default. Under the default
|
||||||
|
Out-of-Memory policy, the entire service will be terminated if
|
||||||
|
any process is killed by the kernel OOM killer. By setting
|
||||||
|
the policy to <emphasis>continue</emphasis>, httpd will
|
||||||
|
continue to run (and recover) if a single child is terminated
|
||||||
|
because of excess memory consumption.</para></listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
|
||||||
|
See
|
||||||
|
<citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||||
|
and
|
||||||
|
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||||
|
for more information.</para>
|
||||||
</refsect2>
|
</refsect2>
|
||||||
|
|
||||||
<refsect2>
|
<refsect2>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
Summary: Apache HTTP Server
|
Summary: Apache HTTP Server
|
||||||
Name: httpd
|
Name: httpd
|
||||||
Version: 2.4.46
|
Version: 2.4.46
|
||||||
Release: 11%{?dist}
|
Release: 12%{?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: https://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2.asc
|
Source1: https://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2.asc
|
||||||
@ -786,6 +786,9 @@ exit $rv
|
|||||||
%{_rpmconfigdir}/macros.d/macros.httpd
|
%{_rpmconfigdir}/macros.d/macros.httpd
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 9 2021 Joe Orton <jorton@redhat.com> - 2.4.46-12
|
||||||
|
- use OOMPolicy=continue in httpd.service, httpd@.service (#1947475)
|
||||||
|
|
||||||
* Wed Mar 31 2021 Lubos Uhliarik <luhliari@redhat.com> - 2.4.46-11
|
* Wed Mar 31 2021 Lubos Uhliarik <luhliari@redhat.com> - 2.4.46-11
|
||||||
- Resolves: #1934739 - Apache trademark update - new logo
|
- Resolves: #1934739 - Apache trademark update - new logo
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ ExecReload=/usr/sbin/httpd $OPTIONS -k graceful -f conf/%i.conf
|
|||||||
KillSignal=SIGWINCH
|
KillSignal=SIGWINCH
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
|
OOMPolicy=continue
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user