mcst-linux-kernel/patches-2024.06.26/infiniband-diags-1.6.6/0002-Fix-exit-code-when-che...

19 lines
450 B
Diff

Link:
Subject: fix exit code when check service status
Bug: 132312
Tags: common
--- a/etc/rdma-ndd.init.in 2021-06-24 10:47:28.969616905 +0300
+++ b/etc/rdma-ndd.init.in 2021-06-24 10:48:45.240418229 +0300
@@ -102,8 +102,10 @@
ret=$?
if [ $ret -eq 0 ] ; then
echo "RDMA Node Description Daemon (rdma-ndd) is running... pid=$pid"
+ exit 0
else
echo "RDMA Node Description Daemon (rdma-ndd) is not running."
+ exit 3
fi
}