From f1e5eec7542a60140049af1d0ad15a916609fd99 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Fri, 26 Mar 2010 17:15:12 -0700 Subject: [PATCH] xenserver: Don't reload ovs-brcompatd's log file if it's not running --- xenserver/etc_logrotate.d_openvswitch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xenserver/etc_logrotate.d_openvswitch b/xenserver/etc_logrotate.d_openvswitch index 18eb1925..f87282c3 100644 --- a/xenserver/etc_logrotate.d_openvswitch +++ b/xenserver/etc_logrotate.d_openvswitch @@ -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 } -- 2.30.2