Run logrotation binary from program
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/data/logs/*_access.log /data/logs/*/*_access.log {
|
||||
/data/logs/*_access.log /data/logs/*/access.log {
|
||||
create 0644 root root
|
||||
weekly
|
||||
rotate 4
|
||||
@ -11,7 +11,7 @@
|
||||
endscript
|
||||
}
|
||||
|
||||
/data/logs/*_error.log /data/logs/*/*_error.log {
|
||||
/data/logs/*_error.log /data/logs/*/error.log {
|
||||
create 0644 root root
|
||||
weekly
|
||||
rotate 10
|
||||
@ -22,17 +22,4 @@
|
||||
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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user