]> git.proxmox.com Git - mirror_ovs.git/blob - rhel/etc_logrotate.d_openvswitch
ovs-kmod-ctl: introduce a kernel module load script
[mirror_ovs.git] / rhel / etc_logrotate.d_openvswitch
1 # Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc.
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 {
9 daily
10 compress
11 sharedscripts
12 missingok
13 postrotate
14 # Tell Open vSwitch daemons to reopen their log files
15 if [ -d /var/run/openvswitch ]; then
16 for ctl in /var/run/openvswitch/*.ctl; do
17 ovs-appctl -t "$ctl" vlog/reopen 2>/dev/null || :
18 done
19 fi
20 endscript
21 }