summaryrefslogtreecommitdiff
path: root/debian/openvswitch-switch.logrotate
blob: 1ccf6f50791d283d9245ea320b8e510c76b4b1f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/var/log/openvswitch/*.log {
    daily
    compress
    sharedscripts
    create 640 root adm
    missingok
    rotate 30
    postrotate
        # Tell Open vSwitch daemons to reopen their log files
        if [ -d /var/run/openvswitch ]; then
            for ctl in /var/run/openvswitch/*.ctl; do
                ovs-appctl -t "$ctl" vlog/reopen 2>/dev/null || :
            done
        fi
    endscript
}