# Copyright 2017, 2019, 2020 Cumulus Networks, Inc.  All rights reserved.
/var/log/clagd.log {
        size 500k
        sharedscripts
        missingok
        notifempty
        delaycompress
        compress
        rotate 14
        nocreate
        include /etc/logrotate.d/cumulus.savefast

        postrotate
                if [ -e /var/run/clagd.pid ] ; then
                        kill -HUP `cat /var/run/clagd.pid`
                fi
                killall -q -HUP rsyslogd
        endscript
}
