X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=xenserver%2Fetc_logrotate.d_openvswitch;h=46b94b9f69cfb7fcf6fed16fb9c757c759559387;hb=5ca1ba484bd9ade5116a49cf241cb98219d7d696;hp=22aab36aea9ff1a4f11026dbe1d88a084572cd41;hpb=bc39196036f8e33d15274855087f0c47be2095ee;p=sliver-openvswitch.git diff --git a/xenserver/etc_logrotate.d_openvswitch b/xenserver/etc_logrotate.d_openvswitch index 22aab36ae..46b94b9f6 100644 --- a/xenserver/etc_logrotate.d_openvswitch +++ b/xenserver/etc_logrotate.d_openvswitch @@ -1,16 +1,17 @@ -# 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 # 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 ovs-brcompatd vlog/reopen - /usr/bin/ovs-appctl -t ovsdb-server vlog/reopen + for pidfile in `cd /var/run/openvswitch && echo *.pid`; do + ovs-appctl -t "${pidfile%%.pid}" vlog/reopen + done endscript }