2012-05-01 14:27:06 -07:00
|
|
|
# Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc.
|
2009-07-08 13:19:16 -07:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2010-04-01 05:11:42 -07:00
|
|
|
/var/log/openvswitch/*.log {
|
2013-02-13 10:25:50 -08:00
|
|
|
daily
|
|
|
|
|
compress
|
2009-07-08 13:19:16 -07:00
|
|
|
sharedscripts
|
2009-10-14 11:38:40 +01:00
|
|
|
missingok
|
2009-07-08 13:19:16 -07:00
|
|
|
postrotate
|
2010-03-25 22:38:13 -07:00
|
|
|
# Tell Open vSwitch daemons to reopen their log files
|
2012-05-01 14:27:06 -07:00
|
|
|
for pidfile in `cd /var/run/openvswitch && echo *.pid`; do
|
|
|
|
|
ovs-appctl -t "${pidfile%%.pid}" vlog/reopen
|
|
|
|
|
done
|
2009-07-08 13:19:16 -07:00
|
|
|
endscript
|
|
|
|
|
}
|