mirror of
https://github.com/openvswitch/ovs
synced 2025-10-29 15:28:56 +00:00
The OVS Python daemons weren't reopening their log files after rotation, so all the log information after the second rotation was lost. Signed-off-by: Ben Pfaff <blp@nicira.com>
15 lines
336 B
Plaintext
15 lines
336 B
Plaintext
/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
|
|
}
|