X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=xenserver%2Fetc_logrotate.d_openvswitch;h=c1ead1459f379ddf91e813ec983c27ec924a06c6;hb=efbf4896385cca076de2329a950d0d162dfb68cc;hp=18eb192518c6c7b6a26ce91134e18c314fc699af;hpb=0d598fb8dcac5abef723e27a42f91e87be27c772;p=sliver-openvswitch.git diff --git a/xenserver/etc_logrotate.d_openvswitch b/xenserver/etc_logrotate.d_openvswitch index 18eb19251..c1ead1459 100644 --- a/xenserver/etc_logrotate.d_openvswitch +++ b/xenserver/etc_logrotate.d_openvswitch @@ -1,17 +1,20 @@ -# Copyright (C) 2009, 2010 Nicira Networks, Inc. +# Copyright (C) 2009, 2010, 2011 Nicira Networks, 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 + 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 endscript }