mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6885: fix logrotate on VR to depend on size
In6ac06e5e5elogrotate was changed to run hourly. Some logrotate configs still have set `daily` only which results in logs not rotated hourly. The only way to ensure the log is rotated is to use size. This closes #162 (cherry picked from commit0ada08aa85) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
13de2691fd
commit
78f4acd9d5
|
|
@ -4,6 +4,6 @@
|
|||
rotate 3
|
||||
compress
|
||||
dateext
|
||||
size=+10M
|
||||
size 10M
|
||||
notifempty
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
/var/log/cloud.log {
|
||||
rotate 4
|
||||
daily
|
||||
size 10M
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
/var/log/conntrackd-stats.log {
|
||||
daily
|
||||
size 10M
|
||||
rotate 2
|
||||
missingok
|
||||
compress
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
/var/log/dnsmasq.log {
|
||||
daily
|
||||
size 10M
|
||||
missingok
|
||||
rotate 5
|
||||
notifempty
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
/var/log/ppp-connect-errors {
|
||||
daily
|
||||
size 10M
|
||||
rotate 5
|
||||
missingok
|
||||
notifempty
|
||||
|
|
|
|||
Loading…
Reference in New Issue