This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/linkis.git
The following commit(s) were added to refs/heads/master by this push:
new 35ece30e8 add stop ec script (#4720)
35ece30e8 is described below
commit 35ece30e871d7879e3dcb29e58f2aecb18c24fbb
Author: aiceflower <[email protected]>
AuthorDate: Thu Jun 29 21:28:29 2023 +0800
add stop ec script (#4720)
---
linkis-dist/package/sbin/linkis-stop-all.sh | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/linkis-dist/package/sbin/linkis-stop-all.sh
b/linkis-dist/package/sbin/linkis-stop-all.sh
index 0fe5a7a72..061ffd897 100644
--- a/linkis-dist/package/sbin/linkis-stop-all.sh
+++ b/linkis-dist/package/sbin/linkis-stop-all.sh
@@ -54,6 +54,23 @@ executeCMD $SERVER_IP "$SERVER_STOP_CMD"
echo "<-------------------------------->"
}
+#ec
+function stopEC(){
+echo "<-------------------------------->"
+echo "Begin to stop EC"
+EC_STOP_CMD="ps -ef | grep EngineConnServer | grep -v grep | tr -s ' ' | cut
-d ' ' -f 2 | xargs sudo kill"
+if test -z "$SERVER_IP"
+then
+ SERVER_IP=$local_host
+fi
+executeCMD $SERVER_IP "$EC_STOP_CMD"
+echo "server ENGINECONNs is stopped"
+echo "<-------------------------------->"
+}
+
+#ec
+stopEC
+
#linkis-mg-gateway
SERVER_NAME="mg-gateway"
SERVER_IP=$GATEWAY_INSTALL_IP
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]