Database startup adds --monitor unconditionally, ignoring --no-monitor.
Honor the option so systemd can supervise database servers directly,
without an intermediate.

Signed-off-by: Ihar Hrachyshka <[email protected]>
---
 utilities/ovn-ctl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/utilities/ovn-ctl b/utilities/ovn-ctl
index 559fffddb..aa2c7476d 100755
--- a/utilities/ovn-ctl
+++ b/utilities/ovn-ctl
@@ -312,7 +312,10 @@ $cluster_remote_port
     fi
 
     if test X"$detach" != Xno; then
-        set "$@" --detach --monitor
+        set "$@" --detach
+        if test X"$MONITOR" != Xno; then
+            set "$@" --monitor
+        fi
     else
         set exec "$@"
     fi
-- 
2.54.0

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to