# log rotation for rsyslog

"/var/log/syslog" "/var/log/cron.log" "/var/log/mail.log" "/var/log/warning.log" "/var/log/err.log" {
        delaycompress
        sharedscripts
        postrotate
            systemctl kill -s HUP --kill-who=main rsyslog.service
        endscript
}

"/var/log/auth.log" {
        delaycompress
        sharedscripts
        create 0600 root root
        postrotate
            systemctl kill -s HUP --kill-who=main rsyslog.service
        endscript
}
