xenserver: Don't reload ovs-brcompatd's log file if it's not running
authorJustin Pettit <jpettit@nicira.com>
Sat, 27 Mar 2010 00:15:12 +0000 (17:15 -0700)
committerJustin Pettit <jpettit@nicira.com>
Mon, 29 Mar 2010 21:29:24 +0000 (14:29 -0700)
xenserver/etc_logrotate.d_openvswitch

index 18eb192518c6c7b6a26ce91134e18c314fc699af..f87282c32b4967db0ec2fc92d0dc2e43a6a6235c 100644 (file)
@@ -11,7 +11,9 @@
        postrotate
        # Tell Open vSwitch daemons to reopen their log files
        /usr/bin/ovs-appctl -t ovs-vswitchd vlog/reopen
-       /usr/bin/ovs-appctl -t ovs-brcompatd vlog/reopen
        /usr/bin/ovs-appctl -t ovsdb-server vlog/reopen
+       if [ -e /var/run/openvswitch/ovs-brcompatd.pid ]; then
+               /usr/bin/ovs-appctl -t ovs-brcompatd vlog/reopen
+       fi
        endscript
 }