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