Files
configpolicy/roles/samba-dc/files/krb5kdc.logrotate.conf
Dustin C. Hatch 24228953b0 r/samba-dc: Configure logrotate for KDC
The KDC service, as managed by Samba, continuously logs to two files
that need to be rotated.  The upstream configuration for logrotate only
manages one of these files, and does not correctly signal the service
after rotating, as it expects the service to be managed by systemd
instead of Samba.  As such, we need to adjust the configuration to
handle both files and send SIGHUP directly to the process.
2022-04-24 11:37:13 -05:00

10 lines
170 B
Plaintext

/var/log/krb5kdc.log /var/log/samba/mit_kdc.log {
missingok
notifempty
monthly
rotate 2
postrotate
pkill -HUP krb5kdc || true
endscript
}