/var/log/wssshd/wssshd.log {
    weekly
    missingok
    rotate 52
    compress
    delaycompress
    notifempty
    create 644 wssshd wssshd
    postrotate
        if [ -f /var/run/wssshd.pid ]; then
            kill -HUP $(cat /var/run/wssshd.pid) 2>/dev/null || true
        fi
    endscript
}

/var/log/wssshd/watchdog.log {
    weekly
    missingok
    rotate 52
    compress
    delaycompress
    notifempty
    create 644 wssshd wssshd
    postrotate
        if [ -f /var/run/wssshd-watchdog.pid ]; then
            kill -HUP $(cat /var/run/wssshd-watchdog.pid) 2>/dev/null || true
        fi
    endscript
}