nginx/nginx.logrotate
Илья Индиго 8075b49267 Accepting request 900388 from home:fschnizlein:branches:server:http
Fix race condition between nginx and logrotate causing mass reopening of files
(bsc#1183876).

OBS-URL: https://build.opensuse.org/request/show/900388
OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=209
2021-06-16 13:39:51 +00:00

16 lines
304 B
Plaintext

/var/log/nginx/*.log {
compress
dateext
maxage 365
rotate 99
size=+4096k
missingok
notifempty
delaycompress
lastaction
# -s reopen will use the pid file passed in the config file or the compiled in default path
/usr/sbin/nginx -s reopen
endscript
}