2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-29 15:28:56 +00:00
Files
openvswitch/debian/openvswitch-switch.logrotate
Ben Pfaff b54c9e972e Properly reopen python daemon log files after rotation.
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>
2012-05-22 10:17:07 -07:00

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
}