homeserver/roles/mgrote.dnsmasq_adblocker/templates/logrotate.j2
mg 42311e2cce dnsmasq: logrotate: postrotate script (#307)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#307
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2022-01-16 10:36:45 +01:00

15 lines
232 B
Django/Jinja

{{ file_header | default () }}
{{ dnsmasq_logfile }} {
su root root
create 0640 root root
rotate 4
daily
compress
missingok
notifempty
dateext
dateyesterday
postrotate
systemctl restart dnsmasq
endscript
}