X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Fopenvswitch-switch.logrotate;h=6620a09441743db1f20937f20a7ef7ec1ba75019;hb=86b87c92669daca4c69f412de2cc42c255368c4f;hp=a45cc2a76d30bc8514c5e943ec1cf984336d7d6f;hpb=4d678233e981fa319a338f6b0949e9dc625941a4;p=sliver-openvswitch.git diff --git a/debian/openvswitch-switch.logrotate b/debian/openvswitch-switch.logrotate index a45cc2a76..6620a0944 100644 --- a/debian/openvswitch-switch.logrotate +++ b/debian/openvswitch-switch.logrotate @@ -1,11 +1,17 @@ -/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 + 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 + endscript }