2012-03-14 11:03:21 +01:00
|
|
|
/var/log/openvswitch/*.log {
|
|
|
|
daily
|
|
|
|
compress
|
2014-05-20 18:03:31 +02:00
|
|
|
create 640 root root
|
2012-03-14 11:03:21 +01:00
|
|
|
delaycompress
|
|
|
|
missingok
|
|
|
|
rotate 30
|
|
|
|
postrotate
|
|
|
|
# Tell Open vSwitch daemons to reopen their log files
|
|
|
|
if [ -e /var/run/openvswitch/ovs-vswitchd.pid ]; then
|
2014-05-20 18:03:31 +02:00
|
|
|
ovs-appctl --target ovs-vswitchd vlog/reopen
|
2012-03-14 11:03:21 +01:00
|
|
|
fi
|
|
|
|
if [ -e /var/run/openvswitch/ovsdb-server.pid ]; then
|
2014-05-20 18:03:31 +02:00
|
|
|
ovs-appctl --target ovsdb-server vlog/reopen
|
2012-03-14 11:03:21 +01:00
|
|
|
fi
|
|
|
|
endscript
|
|
|
|
}
|