Also rotate other logs

This commit is contained in:
chaptergy 2021-06-18 10:43:56 +02:00
parent 289d179142
commit bd3a13b2a5
No known key found for this signature in database
GPG Key ID: BDFB615E550409E7

View File

@ -22,4 +22,17 @@
postrotate
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
endscript
}
}
/data/logs/*.log /data/logs/*[!_error].log /data/logs/*[!_access].log {
create 0644 root root
weekly
rotate 5
missingok
notifempty
compress
sharedscripts
postrotate
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
endscript
}