X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=debian%2Fopenvswitch-switch.logrotate;h=6620a09441743db1f20937f20a7ef7ec1ba75019;hb=7e041ba51410125ec74cba2b5f0b6f1b0481baa9;hp=3da57e09158430c1c6163937380d5cb81e3db97b;hpb=d65349ea28bb67a0062a9b4b60ff97538206373b;p=openvswitch diff --git a/debian/openvswitch-switch.logrotate b/debian/openvswitch-switch.logrotate index 3da57e09..6620a094 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 }