X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Fopenvswitch-switch.logrotate;h=d72d23086b85653c0f6f30090f89108c7278c335;hb=24e81092a1;hp=3da57e09158430c1c6163937380d5cb81e3db97b;hpb=87eeed4c03ebb0847c093eeb8a6b7af5f2fd33af;p=sliver-openvswitch.git diff --git a/debian/openvswitch-switch.logrotate b/debian/openvswitch-switch.logrotate index 3da57e091..d72d23086 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=ovs-openflowd vlog/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 }