Skip to content

Commit 5604b4c

Browse files
committed
CLOUDSTACK-9746 system-vm: logrotate config causes critical failures
* rotate both daily and by size by using maxsize in stead of size * decrease the max size to 10M for rsyslog files * remove delaycompress for rsyslog files * increase rotate to 10 for cloud.log
1 parent a13ee85 commit 5604b4c

File tree

7 files changed

+9
-11
lines changed

7 files changed

+9
-11
lines changed

systemvm/patches/debian/config/etc/logrotate.d/apache2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
rotate 3
55
compress
66
dateext
7-
size 10M
7+
maxsize 10M
88
notifempty
99
}

systemvm/patches/debian/config/etc/logrotate.d/cloud

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
/var/log/cloud.log {
18-
rotate 4
18+
rotate 10
1919
daily
20-
size 10M
20+
maxsize 10M
2121
missingok
2222
notifempty
2323
compress

systemvm/patches/debian/config/etc/logrotate.d/conntrackd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/var/log/conntrackd-stats.log {
22
daily
3-
size 10M
3+
maxsize 10M
44
rotate 2
55
missingok
66
compress

systemvm/patches/debian/config/etc/logrotate.d/dnsmasq

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/var/log/dnsmasq.log {
22
daily
3-
size 10M
3+
maxsize 10M
44
missingok
55
rotate 5
66
notifempty

systemvm/patches/debian/config/etc/logrotate.d/haproxy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
rotate 5
44
missingok
55
notifempty
6-
size 10M
6+
maxsize 10M
77
postrotate
88
/bin/kill -HUP `cat /var/run/rsyslog.pid 2> /dev/null` 2> /dev/null || true
99
endscript

systemvm/patches/debian/config/etc/logrotate.d/ppp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/var/log/ppp-connect-errors {
22
daily
3-
size 10M
3+
maxsize 10M
44
rotate 5
55
missingok
66
notifempty

systemvm/patches/debian/config/etc/logrotate.d/rsyslog

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
{
33
rotate 7
44
daily
5-
size 50M
5+
maxsize 10M
66
missingok
77
notifempty
8-
delaycompress
98
compress
109
postrotate
1110
/usr/sbin/invoke-rc.d rsyslog rotate > /dev/null
@@ -27,11 +26,10 @@
2726
{
2827
rotate 10
2928
daily
30-
size 50M
29+
maxsize 10M
3130
missingok
3231
notifempty
3332
compress
34-
delaycompress
3533
sharedscripts
3634
postrotate
3735
/usr/sbin/invoke-rc.d rsyslog rotate > /dev/null

0 commit comments

Comments
 (0)