X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=debian%2Fopenvswitch-switch.logrotate;h=8b042407e301a931b3f0e1d12e97158082e16101;hb=2c0d2b3bfab41a25becdda41b1cf6003a9ebfd00;hp=a45cc2a76d30bc8514c5e943ec1cf984336d7d6f;hpb=8fef8c7121222233075a03d57db7e0b48d5f6be5;p=openvswitch diff --git a/debian/openvswitch-switch.logrotate b/debian/openvswitch-switch.logrotate index a45cc2a7..8b042407 100644 --- a/debian/openvswitch-switch.logrotate +++ b/debian/openvswitch-switch.logrotate @@ -1,11 +1,14 @@ -/var/log/openvswitch/ovs-openflowd.log { - daily - compress - create 640 root adm - delaycompress - missingok - rotate 30 - postrotate - ovs-appctl --target /var/run/ovs-openflowd.pid --reopen - endscript +/var/log/openvswitch/*.log { + daily + compress + create 640 root adm + delaycompress + missingok + rotate 30 + postrotate + # Tell Open vSwitch daemons to reopen their log files + for pidfile in `cd /var/run/openvswitch && echo *.pid`; do + ovs-appctl -t "${pidfile%%.pid}" vlog/reopen + done + endscript }