15 lines
355 B
Text
15 lines
355 B
Text
/var/log/nginx/*.log {
|
|
daily
|
|
missingok
|
|
rotate 52
|
|
compress
|
|
delaycompress
|
|
notifempty
|
|
create 640 nginx trusted
|
|
sharedscripts
|
|
postrotate
|
|
if [ -f /var/run/nginx.pid ]; then
|
|
kill -USR1 `cat /var/run/nginx.pid`
|
|
fi
|
|
endscript
|
|
}
|