mirror of
https://abf.rosa.ru/djam/angie.git
synced 2025-02-24 19:32:47 +00:00

I confused sending USR1 and restarting, thanks to PastorDi@ for clearifying
This reverts commit f63145fbdc
.
13 lines
293 B
Text
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
|
|
}
|
|
|