nginx/nginx.logrotate
Felix Kaechele f0de5036a7 use different fix for rhbz#1683388 as it introduced permissions issues in 1:1.20.0-2
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
2021-06-01 13:28:30 -04:00

14 lines
243 B
Plaintext

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