/var/log/openresty/*.log {
su @USER@ @GROUP@
rotate 10
notifempty
size 5M
compress
delaycompress
sharedscripts
postrotate
/etc/rc.d/rc.openresty rotate
endscript
}