angie/nginx.logrotate
Mikhail Novosyolov c5e7bb3838 Revert "do not restart nginx in random moments"
I confused sending USR1 and restarting, thanks to PastorDi@ for clearifying

This reverts commit f63145fbdc.
2020-11-07 00:36:25 +03:00

13 lines
293 B
Text

/var/log/nginx/*log {
daily
rotate 10
missingok
notifempty
compress
sharedscripts
postrotate
# USR1 forcing reopening of log file to prevent "holding" it after logrotate
[ ! -f /run/nginx.pid ] || kill -USR1 "$(cat /run/nginx.pid)"
endscript
}