/var/log/groonga/*-http.log {
    daily
    missingok
    rotate 30
    compress
    delaycompress
    notifempty
    create 640 groonga groonga
    sharedscripts
    postrotate
        if [ -f /var/lock/subsys/groonga-server-http ]; then
            /usr/bin/curl --silent --output /dev/null \
                "http://127.0.0.1:${PORT:-10041}/d/log_reopen"
        fi
    endscript
}
