2021-05-30 14:19:05 -04:00
|
|
|
/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
|
2021-06-18 04:43:56 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/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
|
|
|
|
}
|