/var/log/icinga2/icinga2.log /var/log/icinga2/debug.log {
daily
rotate 7
su icinga icinga
compress
delaycompress
missingok
notifempty
postrotate
/bin/kill -USR1 $(cat /run/icinga2/icinga2.pid 2> /dev/null) 2> /dev/null || true
endscript
}
/var/log/icinga2/error.log {
daily
rotate 90
su icinga icinga
compress
delaycompress
missingok
notifempty
# TODO: figure out how to get Icinga to re-open this log file
}