X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=xenserver%2Fetc_logrotate.d_openvswitch;h=46b94b9f69cfb7fcf6fed16fb9c757c759559387;hb=85b20fd6ee585f462e012fbcc7f966a81edab2ed;hp=52eb4f7c8ff868f4fc06f98d49d6d8cf791c597c;hpb=22342ac881747f63bb957bc8762a128611bfae2c;p=sliver-openvswitch.git diff --git a/xenserver/etc_logrotate.d_openvswitch b/xenserver/etc_logrotate.d_openvswitch index 52eb4f7c8..46b94b9f6 100644 --- a/xenserver/etc_logrotate.d_openvswitch +++ b/xenserver/etc_logrotate.d_openvswitch @@ -1,4 +1,4 @@ -# Copyright (C) 2009, 2010 Nicira Networks, Inc. +# Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc. # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright @@ -10,14 +10,8 @@ missingok postrotate # Tell Open vSwitch daemons to reopen their log files - 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 + for pidfile in `cd /var/run/openvswitch && echo *.pid`; do + ovs-appctl -t "${pidfile%%.pid}" vlog/reopen + done endscript }