]> git.proxmox.com Git - mirror_ovs.git/commitdiff
ovs-sandbox: Use different log file names for ovn-controllers.
authorJustin Pettit <jpettit@ovn.org>
Mon, 2 Jul 2018 01:15:53 +0000 (18:15 -0700)
committerJustin Pettit <jpettit@ovn.org>
Fri, 6 Jul 2018 21:47:10 +0000 (14:47 -0700)
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>
tutorial/ovs-sandbox

index 781bedbc6e35e31ef16bc821b84bb22c8ca32f64..3fab1c0ccc98860a0b15c7adff670c843ba61ba2 100755 (executable)
@@ -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 \