[ovs-dev] logrotate: Allow logs to be missing

Ian Campbell Ian.Campbell at citrix.com
Wed Oct 14 10:38:40 UTC 2009


In particular ovs-brcompatd.log is not present if compatibility mode is
disabled. Without this logrotate attempts to send email to the
administrator.

diff -r 4526b11d3842 xenserver/etc_logrotate.d_vswitch
--- a/xenserver/etc_logrotate.d_vswitch	Fri Oct 02 15:21:00 2009 +0100
+++ b/xenserver/etc_logrotate.d_vswitch	Mon Oct 05 09:39:00 2009 +0100
@@ -7,6 +7,7 @@
 
 /var/log/ovs-vswitchd.log /var/log/ovs-brcompatd.log {
 	sharedscripts
+	missingok
 	postrotate
 	# Tell ovs-vswitchd and ovs-brcompatd to reopen their log files
 	/sbin/service vswitch reload






More information about the dev mailing list