You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ca...@apache.org on 2022/09/23 04:48:20 UTC

[incubator-linkis] branch dev-1.3.1 updated: Support startup scripts compatible with multiple service names (#3500)

This is an automated email from the ASF dual-hosted git repository.

casion pushed a commit to branch dev-1.3.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git


The following commit(s) were added to refs/heads/dev-1.3.1 by this push:
     new 46afeb871 Support startup scripts compatible with multiple service names (#3500)
46afeb871 is described below

commit 46afeb87120f7a589f2e0323769cd91dea985584
Author: huangxiaoping <35...@users.noreply.github.com>
AuthorDate: Fri Sep 23 12:48:12 2022 +0800

    Support startup scripts compatible with multiple service names (#3500)
---
 linkis-dist/package/sbin/linkis-daemon.sh | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/linkis-dist/package/sbin/linkis-daemon.sh b/linkis-dist/package/sbin/linkis-daemon.sh
old mode 100644
new mode 100755
index ee23aaa6c..91a328796
--- a/linkis-dist/package/sbin/linkis-daemon.sh
+++ b/linkis-dist/package/sbin/linkis-daemon.sh
@@ -152,6 +152,32 @@ status()
 
 COMMAND=$1
 export SERVER_NAME=$2
+case $SERVER_NAME in
+  "cg-engineconnmanager"|"linkis-cg-engineconnmanager"|"engineconnmanager")
+    export SERVER_NAME="cg-engineconnmanager"
+    ;;
+  "cg-engineplugin"|"linkis-cg-engineplugin"|"engineplugin")
+    export SERVER_NAME="cg-engineplugin"
+    ;;
+  "cg-entrance"|"linkis-cg-entrance"|"entrance")
+    export SERVER_NAME="cg-entrance"
+    ;;
+  "cg-linkismanager"|"linkis-cg-linkismanager"|"linkismanager")
+    export SERVER_NAME="cg-linkismanager"
+    ;;
+  "mg-eureka"|"linkis-mg-eureka"|"eureka")
+    export SERVER_NAME="mg-eureka"
+    ;;
+  "mg-gateway"|"linkis-mg-gateway"|"gateway")
+    export SERVER_NAME="mg-gateway"
+    ;;
+  "ps-publicservice"|"linkis-ps-publicservice"|"publicservice")
+    export SERVER_NAME="ps-publicservice"
+    ;;
+  *)
+    ;;
+esac
+
 export SERVER_PID=$LINKIS_PID_DIR/linkis_$SERVER_NAME.pid
 case $COMMAND in
   start|stop|restart|status)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org