]> git.proxmox.com Git - mirror_ovs.git/blame - rhel/etc_logrotate.d_openvswitch
ovn-controller-vtep: Fix wrong value for ovnsb-db argument
[mirror_ovs.git] / rhel / etc_logrotate.d_openvswitch
CommitLineData
b54c9e97 1# Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc.
c434706a
BP
2#
3# Copying and distribution of this file, with or without modification,
4# are permitted in any medium without royalty provided the copyright
5# notice and this notice are preserved. This file is offered as-is,
6# without warranty of any kind.
7
8/var/log/openvswitch/*.log {
b096fa42 9 su root root
f848080e
TR
10 daily
11 compress
12 sharedscripts
13 missingok
14 postrotate
15 # Tell Open vSwitch daemons to reopen their log files
618a5b45 16 if [ -d /var/run/openvswitch ]; then
bbf219ef
NS
17 for ctl in /var/run/openvswitch/*.ctl; do
18 ovs-appctl -t "$ctl" vlog/reopen 2>/dev/null || :
618a5b45
TR
19 done
20 fi
f848080e 21 endscript
c434706a 22}