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:
Kevin Fenzi 2020-10-01 14:59:08 -07:00
parent aab66b98d3
commit 3fc979c19d
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,2 @@
[Service]
Restart=on-failure

View file

@ -7,6 +7,13 @@
tags: tags:
- packages - 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/ - name: Create /etc/ci-resultsdb-listener/
file: name=/etc/ci-resultsdb-listener/ file: name=/etc/ci-resultsdb-listener/
state=directory state=directory