/var/log/apm.log {
    daily
    rotate 365
    notifempty
    missingok
    postrotate
	/bin/kill -HUP `cat /var/run/apmlog.pid 2> /dev/null` 2> /dev/null || true
    endscript
}
