unbound: fix log rotation

Was too frequent, now that we only log SERVFAILs.
Rotate according to file size.
Fix unbound-control binary path.
This commit is contained in:
Yohaï-Eliel BERREBY 2020-05-11 20:18:23 +02:00
parent 87b2e4f8cf
commit 6d00e2733b

View file

@ -1,6 +1,6 @@
/var/log/unbound/*.log { /var/log/unbound/*.log {
daily size 1G
rotate 30 rotate 4
missingok missingok
notifempty notifempty
compress compress
@ -8,6 +8,6 @@
sharedscripts sharedscripts
create 644 create 644
postrotate postrotate
/usr/local/sbin/unbound-control log_reopen /usr/sbin/unbound-control log_reopen
endscript endscript
} }