CLOUDSTACK-6885: fix logrotate on VR to depend on size

In 6ac06e5e5e logrotate 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

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rene Moser 2015-04-13 17:59:13 +02:00 committed by Rohit Yadav
parent 4a424500f3
commit 0ada08aa85
5 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,6 @@
rotate 3
compress
dateext
size=+10M
size 10M
notifempty
}

View File

@ -17,6 +17,7 @@
/var/log/cloud.log {
rotate 4
daily
size 10M
missingok
notifempty
compress

View File

@ -1,5 +1,6 @@
/var/log/conntrackd-stats.log {
daily
size 10M
rotate 2
missingok
compress

View File

@ -1,5 +1,6 @@
/var/log/dnsmasq.log {
daily
size 10M
missingok
rotate 5
notifempty

View File

@ -1,5 +1,6 @@
/var/log/ppp-connect-errors {
daily
size 10M
rotate 5
missingok
notifempty