-/var/log/openvswitch/ovs-openflowd.log {
- daily
- compress
- create 640 root adm
- delaycompress
- missingok
- rotate 30
- postrotate
- ovs-appctl --target /var/run/ovs-openflowd.pid --reopen
- endscript
+/var/log/openvswitch/*.log {
+ daily
+ compress
+ create 640 root adm
+ delaycompress
+ missingok
+ rotate 30
+ postrotate
+ # Tell Open vSwitch daemons to reopen their log files
+ for pidfile in `cd /var/run/openvswitch && echo *.pid`; do
+ ovs-appctl -t "${pidfile%%.pid}" vlog/reopen
+ done
+ endscript
}