xenserver: Don't reload ovs-brcompatd's log file if it's not running
[sliver-openvswitch.git] / xenserver / etc_logrotate.d_openvswitch
1 # Copyright (C) 2009, 2010 Nicira Networks, Inc.
2 #
3 # Copying and distribution of this file, with or without modification,
4 # are permitted in any medium without royalty provided the copyright
5 # notice and this notice are preserved.  This file is offered as-is,
6 # without warranty of any kind.
7
8 /var/log/openvswitch/* {
9         sharedscripts
10         missingok
11         postrotate
12         # Tell Open vSwitch daemons to reopen their log files
13         /usr/bin/ovs-appctl -t ovs-vswitchd vlog/reopen
14         /usr/bin/ovs-appctl -t ovsdb-server vlog/reopen
15         if [ -e /var/run/openvswitch/ovs-brcompatd.pid ]; then
16                 /usr/bin/ovs-appctl -t ovs-brcompatd vlog/reopen
17         fi
18         endscript
19 }