Browse Source

update shutdown script

tags/1.6.0
imuge 3 years ago
parent
commit
5bf570bfa7
2 changed files with 2 additions and 8 deletions
  1. +1
    -4
      deploy/deploy-gateway/src/main/resources/scripts/shutdown.sh
  2. +1
    -4
      deploy/deploy-peer/src/main/resources/scripts/peer-shutdown.sh

+ 1
- 4
deploy/deploy-gateway/src/main/resources/scripts/shutdown.sh View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash


#定义程序启动的Jar包前缀 #定义程序启动的Jar包前缀
APP_JAR_PREFIX=deploy-gateway-
APP_JAR=deploy-gateway-


#获取当前的根目录 #获取当前的根目录
APP_HOME=$(cd `dirname $0`;cd ../; pwd) APP_HOME=$(cd `dirname $0`;cd ../; pwd)
@@ -9,9 +9,6 @@ APP_HOME=$(cd `dirname $0`;cd ../; pwd)
#System路径 #System路径
APP_LIB_PATH=$APP_HOME/lib APP_LIB_PATH=$APP_HOME/lib


#获取Peer节点的启动Jar包
APP_JAR=$(ls $APP_LIB_PATH | grep $APP_JAR_PREFIX)

#APP_JAR的具体路径 #APP_JAR的具体路径
APP_JAR_PATH=$APP_LIB_PATH/$APP_JAR APP_JAR_PATH=$APP_LIB_PATH/$APP_JAR




+ 1
- 4
deploy/deploy-peer/src/main/resources/scripts/peer-shutdown.sh View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash


#定义程序启动的Jar包前缀 #定义程序启动的Jar包前缀
APP_JAR_PREFIX=deploy-peer-
APP_JAR=deploy-peer-


#获取当前的根目录 #获取当前的根目录
APP_HOME=$(cd `dirname $0`;cd ../; pwd) APP_HOME=$(cd `dirname $0`;cd ../; pwd)
@@ -9,9 +9,6 @@ APP_HOME=$(cd `dirname $0`;cd ../; pwd)
#System路径 #System路径
APP_SYSTEM_PATH=$APP_HOME/system APP_SYSTEM_PATH=$APP_HOME/system


#获取Peer节点的启动Jar包
APP_JAR=$(ls $APP_SYSTEM_PATH | grep $APP_JAR_PREFIX)

#APP_JAR的具体路径 #APP_JAR的具体路径
APP_JAR_PATH=$APP_SYSTEM_PATH/$APP_JAR APP_JAR_PATH=$APP_SYSTEM_PATH/$APP_JAR




Loading…
Cancel
Save