compress /dev/shm/u.log { # dunno if this is needed but it can avoid problems. delaycompress su unbound unbound rotate 20 size 10M # copied from clamav postrotate systemctl -q is-active unbound && systemctl kill --signal=SIGHUP unbound || true endscript }