mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-29 21:10:20 +08:00
resultsdb: restart httpd on error
We have been getting lots of OOM kills on httpd on resultsdb01. This should at least mitigate it until we can sort out why it's happening. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
2
roles/ci_resultsdb/files/httpd.service
Normal file
2
roles/ci_resultsdb/files/httpd.service
Normal file
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
@@ -7,6 +7,13 @@
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: override httpd service to restart on failure
|
||||
copy: dest=/etc/systemd/system/httpd.service
|
||||
src=httpd.service
|
||||
notify:
|
||||
- reload systemd
|
||||
- reload httpd
|
||||
|
||||
- name: Create /etc/ci-resultsdb-listener/
|
||||
file: name=/etc/ci-resultsdb-listener/
|
||||
state=directory
|
||||
|
||||
Reference in New Issue
Block a user