File: openvswitch-switch.logrotate

package info (click to toggle)
openvswitch 3.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 97,848 kB
  • sloc: sh: 1,643,930; ansic: 313,386; python: 27,939; xml: 21,526; makefile: 546; javascript: 191
file content (16 lines) | stat: -rw-r--r-- 413 bytes parent folder | download | duplicates (3)
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 pidfile in `cd /var/run/openvswitch && echo *.pid`; do
            ovs-appctl -t "${pidfile%%.pid}" vlog/reopen 2>/dev/null || :
        done
    fi
    endscript
}