gentoo/net-analyzer/munin/files/logrotate.d-munin.5
Hans de Graaff 3556764c58
net-analyzer/munin: fix logrotate starting stopped service
Closes: https://bugs.gentoo.org/959794
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
2025-07-19 11:15:04 +02:00

34 lines
699 B
Groff

/var/log/munin/munin-node.log {
daily
missingok
rotate 7
compress
delaycompress
notifempty
create 640 root root
postrotate
test -e /run/openrc/softlevel && /etc/init.d/munin-node --ifstarted restart 1>/dev/null || true
test -e /run/systemd/system && systemctl try-restart munin-node 1>/dev/null || true
endscript
}
/var/log/munin/munin-update.log /var/log/munin/munin-graph.log /var/log/munin/munin-html.log /var/log/munin/munin-limits.log {
daily
missingok
rotate 7
compress
delaycompress
notifempty
nocreate
}
/var/log/munin/munin-cgi-graph.log /var/log/munin/munin-cgi-html.log {
daily
missingok
rotate 7
compress
delaycompress
notifempty
create 640 @CGIUSER@ root
}