/var/log/imunify360/captcha.log {
    # Keep 3 rotated files before removal
    rotate 3
    maxsize 50M
    hourly
    compress
    delaycompress

    nocreate
    missingok

    postrotate
        if systemctl status imunify360-captcha > /dev/null ; then \
            systemctl restart imunify360-captcha > /dev/null; \
        fi;
    endscript
}
