File: etc_logrotate.d_openvswitch

package info (click to toggle)
openvswitch 1.4.2%2Bgit20120612-9.1~deb7u1.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 21,072 kB
  • sloc: sh: 115,076; ansic: 99,733; python: 12,294; xml: 2,566; perl: 674; makefile: 344; pascal: 81
file content (20 lines) | stat: -rw-r--r-- 659 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright (C) 2009, 2010, 2011 Nicira Networks, 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 {
	sharedscripts
	missingok
	postrotate
	# Tell Open vSwitch daemons to reopen their log files
	if [ -e /var/run/openvswitch/ovs-vswitchd.pid ]; then
	    /usr/bin/ovs-appctl -t ovs-vswitchd vlog/reopen
	fi
	if [ -e /var/run/openvswitch/ovsdb-server.pid ]; then	
	    /usr/bin/ovs-appctl -t ovsdb-server vlog/reopen
	fi
	endscript
}