[ovs-dev] [PATCH 1/6] rhel, xenserver: Make logrotate daily and compress old logs.

Gurucharan Shetty shettyg at nicira.com
Thu Feb 14 21:28:16 UTC 2013


The default values can be different and usually comes from /etc/logrotate.conf.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
---
 rhel/etc_logrotate.d_openvswitch      |    2 ++
 xenserver/etc_logrotate.d_openvswitch |    2 ++
 2 files changed, 4 insertions(+)

diff --git a/rhel/etc_logrotate.d_openvswitch b/rhel/etc_logrotate.d_openvswitch
index 46b94b9..73751d4 100644
--- a/rhel/etc_logrotate.d_openvswitch
+++ b/rhel/etc_logrotate.d_openvswitch
@@ -6,6 +6,8 @@
 # without warranty of any kind.
 
 /var/log/openvswitch/*.log {
+	daily
+	compress
 	sharedscripts
 	missingok
 	postrotate
diff --git a/xenserver/etc_logrotate.d_openvswitch b/xenserver/etc_logrotate.d_openvswitch
index 46b94b9..73751d4 100644
--- a/xenserver/etc_logrotate.d_openvswitch
+++ b/xenserver/etc_logrotate.d_openvswitch
@@ -6,6 +6,8 @@
 # without warranty of any kind.
 
 /var/log/openvswitch/*.log {
+	daily
+	compress
 	sharedscripts
 	missingok
 	postrotate
-- 
1.7.9.5




More information about the dev mailing list