# notice and this notice are preserved. This file is offered as-is,
# without warranty of any kind.
-/var/log/openvswitch/* {
+/var/log/openvswitch/*.log {
sharedscripts
missingok
postrotate
# Tell Open vSwitch daemons to reopen their log files
- /usr/bin/ovs-appctl -t ovs-vswitchd vlog/reopen
- /usr/bin/ovs-appctl -t ovsdb-server vlog/reopen
+ if [ -e /var/run/openvswitch/ovs-vswitchd.pid ]; then
+ /usr/bin/ovs-appctl -t ovs-vswitchd vlog/reopen
+ fi
+ if [ -e /var/run/openvswitch/ovsdb-server.pid ]; then
+ /usr/bin/ovs-appctl -t ovsdb-server vlog/reopen
+ fi
if [ -e /var/run/openvswitch/ovs-brcompatd.pid ]; then
/usr/bin/ovs-appctl -t ovs-brcompatd vlog/reopen
fi