From 6d00e2733b606554b3c894e8bf1a0de8897066ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoha=C3=AF-Eliel=20BERREBY?= Date: Mon, 11 May 2020 20:18:23 +0200 Subject: [PATCH] unbound: fix log rotation Was too frequent, now that we only log SERVFAILs. Rotate according to file size. Fix unbound-control binary path. --- roles/unbound/templates/unbound-logrotate.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/unbound/templates/unbound-logrotate.j2 b/roles/unbound/templates/unbound-logrotate.j2 index d57e83e..35fe72f 100644 --- a/roles/unbound/templates/unbound-logrotate.j2 +++ b/roles/unbound/templates/unbound-logrotate.j2 @@ -1,6 +1,6 @@ /var/log/unbound/*.log { - daily - rotate 30 + size 1G + rotate 4 missingok notifempty compress @@ -8,6 +8,6 @@ sharedscripts create 644 postrotate - /usr/local/sbin/unbound-control log_reopen + /usr/sbin/unbound-control log_reopen endscript }