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:
parent
aab66b98d3
commit
3fc979c19d
2 changed files with 9 additions and 0 deletions
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:
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue