copr: automatically restart frontend httpd after failure
This commit is contained in:
parent
68139c0ff2
commit
12dd3933cc
1 changed files with 12 additions and 0 deletions
|
@ -91,6 +91,18 @@
|
|||
backup: yes
|
||||
notify: restart apache
|
||||
|
||||
- name: When httpd is OOM killed or otherwise failed, start it again
|
||||
ini_file:
|
||||
path: /usr/lib/systemd/system/httpd.service
|
||||
section: Service
|
||||
option: "{{ item.option }}"
|
||||
value: "{{ item.value }}"
|
||||
backup: yes
|
||||
with_items:
|
||||
- { option: "Restart", value: "on-failure" }
|
||||
- { option: "RestartSec", value: "5s" }
|
||||
notify: restart apache
|
||||
|
||||
- include_role:
|
||||
name: keytab/service
|
||||
vars:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue