2012-05-01 14:27:06 -07:00
|
|
|
# Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc.
|
2011-06-21 13:00:22 -07:00
|
|
|
#
|
|
|
|
# Copying and distribution of this file, with or without modification,
|
|
|
|
# are permitted in any medium without royalty provided the copyright
|
|
|
|
# notice and this notice are preserved. This file is offered as-is,
|
|
|
|
# without warranty of any kind.
|
|
|
|
|
|
|
|
/var/log/openvswitch/*.log {
|
2018-08-08 17:27:25 +03:00
|
|
|
su root root
|
2017-04-13 11:48:19 +02:00
|
|
|
daily
|
|
|
|
compress
|
|
|
|
sharedscripts
|
|
|
|
missingok
|
|
|
|
postrotate
|
|
|
|
# Tell Open vSwitch daemons to reopen their log files
|
2021-05-12 17:08:08 +02:00
|
|
|
if [ -d /run/openvswitch ]; then
|
|
|
|
for ctl in /run/openvswitch/*.ctl; do
|
2017-11-08 14:29:07 +05:30
|
|
|
ovs-appctl -t "$ctl" vlog/reopen 2>/dev/null || :
|
2017-04-13 11:48:20 +02:00
|
|
|
done
|
|
|
|
fi
|
2017-04-13 11:48:19 +02:00
|
|
|
endscript
|
2011-06-21 13:00:22 -07:00
|
|
|
}
|