X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=debian%2Fopenvswitch-switch.logrotate;h=8b042407e301a931b3f0e1d12e97158082e16101;hb=1a59dc2c8a23dcd6a240fa6ee099008602c9f73e;hp=d72d23086b85653c0f6f30090f89108c7278c335;hpb=24e81092a136e4a60443dc6a04206c2a631ace3a;p=openvswitch diff --git a/debian/openvswitch-switch.logrotate b/debian/openvswitch-switch.logrotate index d72d2308..8b042407 100644 --- a/debian/openvswitch-switch.logrotate +++ b/debian/openvswitch-switch.logrotate @@ -7,11 +7,8 @@ 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 - fi + for pidfile in `cd /var/run/openvswitch && echo *.pid`; do + ovs-appctl -t "${pidfile%%.pid}" vlog/reopen + done endscript }