angie/nginx.logrotate

13 lines
213 B
Text
Raw Normal View History

2012-02-01 14:31:26 +04:00
/var/log/nginx/*log {
daily
rotate 10
missingok
notifempty
compress
sharedscripts
postrotate
2015-01-14 02:56:56 +10:00
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
2012-02-01 14:31:26 +04:00
endscript
}