Mailman: add a logrotate file
This commit is contained in:
parent
4357f8ba68
commit
e28ed83d7e
2 changed files with 16 additions and 0 deletions
|
@ -118,6 +118,11 @@
|
||||||
copy: src=hyperkitty.logrotate.conf
|
copy: src=hyperkitty.logrotate.conf
|
||||||
dest=/etc/logrotate.d/hyperkitty
|
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
|
# HyperKitty + Postorius setup
|
||||||
|
|
11
roles/mailman/templates/mailman.logrotate.j2
Normal file
11
roles/mailman/templates/mailman.logrotate.j2
Normal 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
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue