]> git.proxmox.com Git - mirror_ovs.git/blame - xenserver/etc_logrotate.d_openvswitch
ovs-xapi-sync: Rerun processing when a db update arrives during a commit.
[mirror_ovs.git] / xenserver / etc_logrotate.d_openvswitch
CommitLineData
34edeccf 1# Copyright (C) 2009, 2010, 2011 Nicira Networks, Inc.
064af421
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
22342ac8 8/var/log/openvswitch/*.log {
064af421 9 sharedscripts
0d598fb8 10 missingok
064af421 11 postrotate
bc391960 12 # Tell Open vSwitch daemons to reopen their log files
c8da7c1b
IC
13 if [ -e /var/run/openvswitch/ovs-vswitchd.pid ]; then
14 /usr/bin/ovs-appctl -t ovs-vswitchd vlog/reopen
15 fi
16 if [ -e /var/run/openvswitch/ovsdb-server.pid ]; then
17 /usr/bin/ovs-appctl -t ovsdb-server vlog/reopen
18 fi
064af421
BP
19 endscript
20}