ansible/roles/unbound/templates/unbound-logrotate.j2
Yohaï-Eliel BERREBY 6d00e2733b unbound: fix log rotation
Was too frequent, now that we only log SERVFAILs.
Rotate according to file size.
Fix unbound-control binary path.
2020-05-11 20:18:23 +02:00

13 lines
183 B
Django/Jinja

/var/log/unbound/*.log {
size 1G
rotate 4
missingok
notifempty
compress
delaycompress
sharedscripts
create 644
postrotate
/usr/sbin/unbound-control log_reopen
endscript
}