"/var/log/apcupsd.events" {
	rotate 7
	daily
	compress
	missingok
	postrotate
	if [ -f /var/run/apcupsd.pid ]; then \
		/etc/init.d/apcupsd restart >/dev/null ; fi
	endscript
}
