summaryrefslogtreecommitdiff
path: root/debian/openvswitch-switch.logrotate
blob: a7a71bdd90ad8f64b901d68136f45390500f3dd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/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
        for pidfile in `cd /var/run/openvswitch && echo *.pid`; do
            ovs-appctl -t "${pidfile%%.pid}" vlog/reopen
        done
    fi
    endscript
}