summaryrefslogtreecommitdiffstats
path: root/network/unbound/unbound.logrotate
blob: a00c8f09512864faa277c681670d6f3291efd866 (plain)
1
2
3
4
5
6
7
8
9
10
11
/var/log/unbound/unbound.log {
    su unbound unbound
    notifempty
    missingok
    rotate 7
    postrotate
         # Try using unbound-control to start a new log
         # On fail, fall back to using a HUP signal
         /usr/sbin/unbound-control log_reopen || bash /etc/rc.d/rc.unbound reload
    endscript
}