nginx/nginx.logrotate
2015-06-14 18:03:15 +01:00

14 lines
265 B
Plaintext

/var/log/nginx/*log {
create 0644 nginx nginx
daily
rotate 10
missingok
notifempty
compress
sharedscripts
postrotate
/usr/bin/systemctl kill --signal=SIGUSR1 --kill-who=main nginx.service 2>/dev/null || true
endscript
}