-/var/log/openvswitch/secchan.log {
- daily
- compress
- create 640 root adm
- delaycompress
- missingok
- rotate 30
- postrotate
- ovs-appctl --target /var/run/secchan.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
+ if [ -e /var/run/openvswitch/ovs-vswitchd.pid ]; then
+ ovs-appctl --t ovs-vswitchd vlog/reopen
+ fi
+ if [ -e /var/run/openvswitch/ovsdb-server.pid ]; then
+ ovs-appctl --t ovsdb-server vlog/reopen
+ fi
+ endscript
}