« Unbound - Pihole » : différence entre les versions
| Ligne 20 : | Ligne 20 : | ||
sudo chmod 640 /var/log/unbound.log | sudo chmod 640 /var/log/unbound.log | ||
sudo chown unbound:unbound /var/log/unbound.log | sudo chown unbound:unbound /var/log/unbound.log | ||
<code> | |||
/var/log/unbound.log | |||
{ | |||
rotate 7 | |||
weekly | |||
missingok | |||
notifempty | |||
delaycompress | |||
compress | |||
size 1M | |||
create 640 unbound unbound | |||
postrotate | |||
service unbound restart | |||
endscript | |||
} | |||
</code> | |||
#forcer logrotate | #forcer logrotate | ||