From: Justin Pettit Date: Sat, 27 Mar 2010 00:15:12 +0000 (-0700) Subject: xenserver: Don't reload ovs-brcompatd's log file if it's not running X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1e5eec7542a60140049af1d0ad15a916609fd99;p=openvswitch xenserver: Don't reload ovs-brcompatd's log file if it's not running --- 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 }