/var/log/clagd.log {
        size 500k
        sharedscripts
        missingok
        notifempty
        delaycompress
        compress
        rotate 14
        nocreate

        postrotate
                if [ -e /var/run/clagd.pid ] ; then
                        kill -HUP `cat /var/run/clagd.pid`
                fi
                invoke-rc.d rsyslog rotate > /dev/null
        endscript
}
