a6d5b6
/var/log/nginx/*.log {
a6d5b6
    create 0640 nginx root
a6d5b6
    daily
a6d5b6
    rotate 10
a6d5b6
    missingok
a6d5b6
    notifempty
a6d5b6
    compress
a6d5b6
    delaycompress
a6d5b6
    sharedscripts
a6d5b6
    postrotate
a6d5b6
        /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
a6d5b6
    endscript
a6d5b6
}
a6d5b6