Mailman: add a logrotate file

This commit is contained in:
Aurélien Bompard 2015-04-02 09:37:53 +00:00
parent 4357f8ba68
commit e28ed83d7e
2 changed files with 16 additions and 0 deletions

View file

@ -118,6 +118,11 @@
copy: src=hyperkitty.logrotate.conf
dest=/etc/logrotate.d/hyperkitty
# XXX: to remove when the RPM can be used
- name: mailman logging -- rotation
template: src=mailman.logrotate.j2
dest=/etc/logrotate.d/mailman3
#
# HyperKitty + Postorius setup

View file

@ -0,0 +1,11 @@
{{ mailman_webui_basedir }}/var/logs/*.log {
missingok
sharedscripts
su mailman mailman
postrotate
/bin/kill -HUP `cat /run/mailman3/master.pid 2>/dev/null` 2>/dev/null || true
# Don't run "mailman3 reopen" with SELinux on here in the logrotate
# context, it will be blocked
#/usr/bin/mailman3 reopen >/dev/null 2>&1 || true
endscript
}