[ovs-dev] [PATCH v3 2/4] ovs-ctl: Use 'stop_daemon' to stop ovs-monitor-ipsec

Mark Gray mark.d.gray at redhat.com
Mon Jan 4 08:45:19 UTC 2021


Signed-off-by: Mark Gray <mark.d.gray at redhat.com>
Acked-by: Eelco Chaudron <echaudro at redhat.com>
---
v2:  Use 'stop_daemon'
v3:  Update commit message
 
 utilities/ovs-ctl.in | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in
index 8c5cd703274e..39375f4d2ab7 100644
--- a/utilities/ovs-ctl.in
+++ b/utilities/ovs-ctl.in
@@ -254,8 +254,7 @@ stop_forwarding () {
 }
 
 stop_ovs_ipsec () {
-    ${bindir}/ovs-appctl -t ovs-monitor-ipsec exit || return 1
-    return 0
+    stop_daemon ovs-monitor-ipsec
 }
 
 ## --------------- ##
-- 
2.26.2



More information about the dev mailing list