2012-10-19 09:39:44 +02:00
|
|
|
/var/log/nginx/*.log {
|
|
|
|
compress
|
|
|
|
dateext
|
|
|
|
maxage 365
|
|
|
|
rotate 99
|
|
|
|
size=+4096k
|
|
|
|
missingok
|
|
|
|
notifempty
|
2021-06-16 15:39:51 +02:00
|
|
|
delaycompress
|
|
|
|
lastaction
|
2024-03-03 12:04:33 +01:00
|
|
|
# "-s reopen" will use the pid file passed in the config file or the compiled in default path
|
|
|
|
[ -f /run/nginx.pid ] && /usr/sbin/nginx -s reopen
|
|
|
|
endscript
|
2012-10-19 09:39:44 +02:00
|
|
|
}
|