/var/log/xin/*.log {
    daily
    missingok
    rotate 14
    compress
    delaycompress
    notifempty
    create 0640 root adm
    sharedscripts
    postrotate
        if [ -d /run/systemd/system ]; then
            systemctl kill -s USR1 xin.service >/dev/null 2>&1 || true
        else
            pkill -USR1 -x 'xin: master' >/dev/null 2>&1 || true
        fi
    endscript
}
