2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-25 15:07:05 +00:00
Files
openvswitch/debian/openvswitch-switch.logrotate
Alfredo Finelli 11bd0a533c debian: Avoid logrotate error if /var/run/openvswitch does not exist.
Signed-off-by: Alfredo Finelli <alf@computationes.de>
Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-11-12 08:04:17 -08:00

17 lines
396 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
if [ -d /var/run/openvswitch ]; then
for pidfile in `cd /var/run/openvswitch && echo *.pid`; do
ovs-appctl -t "${pidfile%%.pid}" vlog/reopen
done
fi
endscript
}