angie/nginx.logrotate

14 lines
293 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
# USR1 forcing reopening of log file to prevent "holding" it after logrotate
[ ! -f /run/nginx.pid ] || kill -USR1 "$(cat /run/nginx.pid)"
endscript
2012-02-01 14:31:26 +04:00
}