logrotate: Allow logs to be missing
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 14 Oct 2009 10:38:40 +0000 (11:38 +0100)
committerBen Pfaff <blp@nicira.com>
Wed, 14 Oct 2009 19:52:07 +0000 (12:52 -0700)
In particular ovs-brcompatd.log is not present if compatibility mode is
disabled. Without this logrotate attempts to send email to the
administrator.

xenserver/etc_logrotate.d_vswitch

index 6366c67..3186e10 100644 (file)
@@ -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