Rotate mailman-core logs

Mailman doesn't presently perform its own log rotation. We have
existing configuration to do this for mailman-web so add
mailman-core the same way.

There is also an outstanding bug that it lacks the capability to
release old log file handles when reopening them (e.g. at reload on
SIGHUP), so copytruncate method is strongly recommended. Luckily,
this is already the default for our logrotate role.

Change-Id: Ibd60b19e9d4eab3da49c399db163407a0eaaf604
This commit is contained in:
Jeremy Stanley
2025-04-29 19:20:30 +00:00
parent 32bd9b55c3
commit 9264794601

View File

@ -321,7 +321,14 @@
#### Logrotate for service logs ####
- name: Rotate mailman logs
- name: Rotate mailman-core logs
include_role:
name: logrotate
vars:
logrotate_rotate: 90
logrotate_file_name: '/var/lib/mailman/core/var/logs/*.log'
- name: Rotate mailman-web logs
include_role:
name: logrotate
vars: