/var/log/icinga2/icinga2.log /var/log/icinga2/debug.log {
	daily
	rotate 7
	compress
	delaycompress
	missingok
	notifempty
	create 644 icinga icinga
	postrotate
		if service icinga2 status > /dev/null; then
			if [ -e /var/run/icinga2/icinga2.pid ]; then
				kill -USR1 $(cat /var/run/icinga2/icinga2.pid)
			fi
		fi
	endscript
}

/var/log/icinga2/error.log {
	daily
	rotate 90
	compress
	delaycompress
	missingok
	notifempty
	create 644 icinga icinga
	# TODO: figure out how to get Icinga to re-open this log file
}

