Skip to content

Commit

Permalink
Support startup scripts compatible with multiple service names (#3500)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangxiaopingRD authored Sep 23, 2022
1 parent 2577568 commit 46afeb8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions linkis-dist/package/sbin/linkis-daemon.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 46afeb8

Please sign in to comment.