/var/log/ky_kms_activation.log {
    monthly
    size 10M
    missingok
    notifempty
    rotate 5
    create 0644 root root
    dateext
    dateformat -%Y%m%d
    postrotate
        /bin/systemctl try-restart kylin-kms-activation.service
    endscript
}

