From 8513861bb8722b396f323def8e88302c2d4b2e3d Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 9 Apr 2021 14:04:46 +0200 Subject: [PATCH] copr-frontend: keep httpd going on child's OOM kill --- roles/copr/frontend-cloud/tasks/httpd.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/copr/frontend-cloud/tasks/httpd.yml b/roles/copr/frontend-cloud/tasks/httpd.yml index e97fc0f407..b2a853ae1a 100644 --- a/roles/copr/frontend-cloud/tasks/httpd.yml +++ b/roles/copr/frontend-cloud/tasks/httpd.yml @@ -82,3 +82,10 @@ regexp: '^LoadModule substitute_module modules/mod_substitute.so' line: '#LoadModule substitute_module modules/mod_substitute.so' +- name: Keep httpd master running when child is OOM killed, rhbz#1947475 + ini_file: + path: /usr/lib/systemd/system/httpd.service + section: Service + option: OOMPolicy + value: continue + backup: yes