/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 [ -d /var/run/openvswitch ]; then
        find /var/run/openvswitch -name '*.pid' -printf "%f\n" | while read -r pidfile; do
            ovs-appctl -t "${pidfile%%.pid}" vlog/reopen
        done
    fi
    endscript
}
