Blame openvswitch.logrotate
|
Thomas Graf |
9dc09e0 |
# Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc.
|
|
Chris Wright |
2564f3b |
#
|
|
Chris Wright |
2564f3b |
# Copying and distribution of this file, with or without modification,
|
|
Chris Wright |
2564f3b |
# are permitted in any medium without royalty provided the copyright
|
|
Chris Wright |
2564f3b |
# notice and this notice are preserved. This file is offered as-is,
|
|
Chris Wright |
2564f3b |
# without warranty of any kind.
|
|
Chris Wright |
2564f3b |
|
|
Chris Wright |
2564f3b |
/var/log/openvswitch/*.log {
|
|
Chris Wright |
2564f3b |
sharedscripts
|
|
Chris Wright |
2564f3b |
missingok
|
|
Chris Wright |
2564f3b |
postrotate
|
|
Chris Wright |
2564f3b |
# Tell Open vSwitch daemons to reopen their log files
|
|
Thomas Graf |
9dc09e0 |
for pidfile in `cd /var/run/openvswitch && echo *.pid`; do
|
|
Thomas Graf |
9dc09e0 |
ovs-appctl -t "${pidfile%%.pid}" vlog/reopen
|
|
Thomas Graf |
9dc09e0 |
done
|
|
Chris Wright |
2564f3b |
endscript
|
|
Chris Wright |
2564f3b |
}
|