openvswitch/openvswitch-switch.logrotate

18 lines
448 B
Plaintext

/var/log/openvswitch/*.log {
daily
compress
create 640 root root
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 --target ovs-vswitchd vlog/reopen
fi
if [ -e /var/run/openvswitch/ovsdb-server.pid ]; then
ovs-appctl --target ovsdb-server vlog/reopen
fi
endscript
}