nginx/nginx.logrotate
Felix Kaechele 3ba5cb0faa Fix "file size changed while zipping" when rotating logs (rhbz#1980948,2015249,2015243)
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
2021-10-18 18:55:11 -04:00

15 lines
261 B
Plaintext

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