Adds logrotate

This commit is contained in:
chaptergy
2021-05-30 20:19:05 +02:00
parent deca493912
commit 289d179142
5 changed files with 34 additions and 5 deletions

View File

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