Also rotate other logs
This commit is contained in:
parent
289d179142
commit
bd3a13b2a5
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user