git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
debian, rhel, xenserver: Ability to collect ovs-ctl logs.
[sliver-openvswitch.git]
/
utilities
/
ovs-lib.in
diff --git
a/utilities/ovs-lib.in
b/utilities/ovs-lib.in
index
b787b1c
..
d010abf
100644
(file)
--- a/
utilities/ovs-lib.in
+++ b/
utilities/ovs-lib.in
@@
-37,6
+37,11
@@
else
dbdir='@DBDIR@'
fi
+ovs_ctl () {
+ echo "`date -u`:$@" >> "${logdir}/ovs-ctl.log"
+ "${datadir}/scripts/ovs-ctl" "$@" 2>&1 | tee -a "${logdir}/ovs-ctl.log"
+}
+
VERSION='@VERSION@'
DAEMON_CWD=/