projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sflow: Include Ethernet FCS in frame_length to comply with sFlow spec.
[openvswitch]
/
xenserver
/
etc_logrotate.d_openvswitch
diff --git
a/xenserver/etc_logrotate.d_openvswitch
b/xenserver/etc_logrotate.d_openvswitch
index f87282c32b4967db0ec2fc92d0dc2e43a6a6235c..52eb4f7c8ff868f4fc06f98d49d6d8cf791c597c 100644
(file)
--- a/
xenserver/etc_logrotate.d_openvswitch
+++ b/
xenserver/etc_logrotate.d_openvswitch
@@
-5,13
+5,17
@@
# notice and this notice are preserved. This file is offered as-is,
# without warranty of any kind.
# notice and this notice are preserved. This file is offered as-is,
# without warranty of any kind.
-/var/log/openvswitch/* {
+/var/log/openvswitch/*
.log
{
sharedscripts
missingok
postrotate
# Tell Open vSwitch daemons to reopen their log files
sharedscripts
missingok
postrotate
# Tell Open vSwitch daemons to reopen their log files
- /usr/bin/ovs-appctl -t ovs-vswitchd vlog/reopen
- /usr/bin/ovs-appctl -t ovsdb-server vlog/reopen
+ 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
if [ -e /var/run/openvswitch/ovs-brcompatd.pid ]; then
/usr/bin/ovs-appctl -t ovs-brcompatd vlog/reopen
fi
if [ -e /var/run/openvswitch/ovs-brcompatd.pid ]; then
/usr/bin/ovs-appctl -t ovs-brcompatd vlog/reopen
fi