mirror of
https://github.com/openvswitch/ovs
synced 2025-10-27 15:18:06 +00:00
The default values can be different and usually comes from /etc/logrotate.conf. For xenserver6.0.2, the values in /etc/logrotate.conf is daily and compress. So this patch does not make any difference. But it does future proof against any changes in xenserver in the future. For rhel6.1, the values are weekly and un-compress. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
20 lines
585 B
Plaintext
20 lines
585 B
Plaintext
# Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc.
|
|
#
|
|
# Copying and distribution of this file, with or without modification,
|
|
# are permitted in any medium without royalty provided the copyright
|
|
# notice and this notice are preserved. This file is offered as-is,
|
|
# without warranty of any kind.
|
|
|
|
/var/log/openvswitch/*.log {
|
|
daily
|
|
compress
|
|
sharedscripts
|
|
missingok
|
|
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
|
|
}
|