/opt/nginx/log/*.log {
        hourly
        missingok
        rotate 14
        maxsize 10M
        compress
        delaycompress
        notifempty
        create 640 root adm
        sharedscripts
        postrotate
                [ ! -f /run/nginx.pid ] || kill -USR1 `cat /run/nginx.pid`
        endscript
}