X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Fopenvswitch-switch.logrotate;h=a7a71bdd90ad8f64b901d68136f45390500f3dd0;hb=HEAD;hp=d72d23086b85653c0f6f30090f89108c7278c335;hpb=24e81092a136e4a60443dc6a04206c2a631ace3a;p=sliver-openvswitch.git diff --git a/debian/openvswitch-switch.logrotate b/debian/openvswitch-switch.logrotate index d72d23086..a7a71bdd9 100644 --- a/debian/openvswitch-switch.logrotate +++ b/debian/openvswitch-switch.logrotate @@ -7,11 +7,10 @@ rotate 30 postrotate # Tell Open vSwitch daemons to reopen their log files - if [ -e /var/run/openvswitch/ovs-vswitchd.pid ]; then - ovs-appctl --t ovs-vswitchd vlog/reopen - fi - if [ -e /var/run/openvswitch/ovsdb-server.pid ]; then - ovs-appctl --t ovsdb-server vlog/reopen + if [ -d /var/run/openvswitch ]; then + for pidfile in `cd /var/run/openvswitch && echo *.pid`; do + ovs-appctl -t "${pidfile%%.pid}" vlog/reopen + done fi endscript }