rhel, xenserver: Make logrotate daily and compress old logs.
authorGurucharan Shetty <gshetty@nicira.com>
Wed, 13 Feb 2013 18:25:50 +0000 (10:25 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Thu, 14 Feb 2013 22:14:33 +0000 (14:14 -0800)
The default values can be different and usually comes from /etc/logrotate.conf.

For xenserver6.0.2, the values in /etc/logrotate.conf is daily and compress.
So this patch does not make any difference. But it does future proof against
any changes in xenserver in the future.

For rhel6.1, the values are weekly and un-compress.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
rhel/etc_logrotate.d_openvswitch
xenserver/etc_logrotate.d_openvswitch

index 46b94b9..73751d4 100644 (file)
@@ -6,6 +6,8 @@
 # without warranty of any kind.
 
 /var/log/openvswitch/*.log {
+       daily
+       compress
        sharedscripts
        missingok
        postrotate
index 46b94b9..73751d4 100644 (file)
@@ -6,6 +6,8 @@
 # without warranty of any kind.
 
 /var/log/openvswitch/*.log {
+       daily
+       compress
        sharedscripts
        missingok
        postrotate