myvesta/install/ubuntu/16.10/logrotate/nginx
2016-12-13 15:53:57 +02:00

14 lines
329 B
Plaintext

/var/log/nginx/*log /var/log/nginx/domains/*log {
daily
missingok
rotate 52
compress
delaycompress
notifempty
create 640 nginx adm
sharedscripts
postrotate
[ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
endscript
}