nginx/templates/logrotate/nginx.j2

12 lines
235 B
Plaintext
Raw Permalink Normal View History

2021-03-03 08:31:54 +00:00
/var/log/nginx/*log {
create 0644
{{ nginx_logrotate_period }}
rotate {{nginx_logrotate_number}}
missingok
notifempty
sharedscripts
postrotate
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
endscript
}