Verified Commit c81f4ac1 authored by Kristian Klausen's avatar Kristian Klausen 🎉
Browse files

mailman: Always restart mailman.service

It has been killed by systemd-oomd a few times recently and we don't
want to start it manually every time it happens.
parent 7c7df49d
Pipeline #15109 passed with stage
in 52 seconds
[Service]
Restart=always
---
- name: restart mailman
service: name=mailman daemon_reload=yes state=restarted
- name: reload mailman
service: name=mailman state=reloaded
......
......@@ -48,6 +48,13 @@
- name: start and enable postfix
systemd: name=postfix.service enabled=yes daemon_reload=yes state=started
- name: create drop-in directory for mailman.service
file: path=/etc/systemd/system/mailman.service.d state=directory owner=root group=root mode=0755
- name: install drop-in for mailman.service
copy: src=override.conf dest=/etc/systemd/system/mailman.service.d/ owner=root group=root mode=0644
notify: restart mailman
- name: start and enable mailman{.service,-*.timer}
systemd: name={{ item }} enabled=yes daemon_reload=yes state=started
loop:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment