From d26de78b3dd54554e5ef64c1adc261e376f66f1a Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 23 May 2023 08:29:29 -0500 Subject: [PATCH] r/samba-dc: Rotate KDC log weekly The Samba KDC log file seems to grow rather quickly sometimes, outpacing the monthly rotation policy. Let's rotate it weekly and keep 4 historical versions. --- roles/samba-dc/files/krb5kdc.logrotate.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/samba-dc/files/krb5kdc.logrotate.conf b/roles/samba-dc/files/krb5kdc.logrotate.conf index d4abbd3..959ba0c 100644 --- a/roles/samba-dc/files/krb5kdc.logrotate.conf +++ b/roles/samba-dc/files/krb5kdc.logrotate.conf @@ -1,8 +1,8 @@ /var/log/krb5kdc.log /var/log/samba/mit_kdc.log { missingok notifempty - monthly - rotate 2 + weekly + rotate 4 postrotate pkill -HUP krb5kdc || true endscript