Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support startup scripts compatible with multiple service names #3500

Merged
merged 2 commits into from
Sep 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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