summaryrefslogtreecommitdiff
path: root/tutorial
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@ovn.org>2018-07-01 18:15:53 -0700
committerJustin Pettit <jpettit@ovn.org>2018-07-06 14:47:10 -0700
commitc8e0d9809c2681c0f4e34561a434b535f517eefb (patch)
tree35ef3f83000c405d302e544b89df4f231cd873fb /tutorial
parent6433e2c7fb94bcd081c30bbc28e7a262d8f710cb (diff)
downloadopenvswitch-c8e0d9809c2681c0f4e34561a434b535f517eefb.tar.gz
ovs-sandbox: Use different log file names for ovn-controllers.
Commit 047458de40391 ("ovs-sandbox: Add option to support multiple ovn-controllers.") allowed creating multiple instances of ovn-controller. However, all instances would use the same log file name. This commit uses the sequence number to name the log file. Signed-off-by: Justin Pettit <jpettit@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tutorial')
-rwxr-xr-xtutorial/ovs-sandbox3
1 files changed, 2 insertions, 1 deletions
diff --git a/tutorial/ovs-sandbox b/tutorial/ovs-sandbox
index 781bedbc6..3fab1c0cc 100755
--- a/tutorial/ovs-sandbox
+++ b/tutorial/ovs-sandbox
@@ -537,7 +537,8 @@ if $ovn; then
for i in $(seq $n_controllers); do
rungdb $gdb_ovn_controller $gdb_ovn_controller_ex ovn-controller \
$OVN_CTRLR_PKI --detach --no-chdir -vsyslog:off \
- --pidfile=ovn-controller$i.pid -vconsole:off --log-file
+ --log-file=ovn-controller$i.log \
+ --pidfile=ovn-controller$i.pid -vconsole:off
done
rungdb $gdb_ovn_controller_vtep $gdb_ovn_controller_vtep_ex \
ovn-controller-vtep --detach --no-chdir --pidfile -vconsole:off \