summaryrefslogtreecommitdiff
path: root/xenserver/etc_logrotate.d_openvswitch
blob: 73751d4578b024e97ffb4046e8c537e1f8a5b9f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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
}