Browse Source

use new format: deploy-peer- and deploy-gateway- ;

tags/1.2.0^2
zhaoguangwei 5 years ago
parent
commit
160338aa90
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      deploy/deploy-gateway/src/main/resources/scripts/shutdown.sh
  2. +2
    -2
      deploy/deploy-peer/src/main/resources/scripts/peer-shutdown.sh

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

@@ -15,11 +15,11 @@ if [ -f "$PID_LOG" ]; then
if [[ $PID_LINE == *GW_BOOT_PID* ]]; then
LOG_PID=$(echo $PID_LINE | cut -d "=" -f 2 | cut -d "[" -f 2 | cut -d "]" -f 1)
echo "Last Gateway Boot PID = $LOG_PID ..."
PID=`ps -ef | grep deployment-gateway | grep $LOG_PID | grep -v grep | awk '{print $2}'`
PID=`ps -ef | grep deploy-gateway- | grep $LOG_PID | grep -v grep | awk '{print $2}'`
fi
#启动文件不存在则直接通过PS进行过滤
else
PID=`ps -ef | grep $BOOT_HOME/lib/deployment-gateway | grep -v grep | awk '{print $2}'`
PID=`ps -ef | grep $BOOT_HOME/lib/deploy-gateway- | grep -v grep | awk '{print $2}'`
fi

#通过Kill命令将进程杀死


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

@@ -15,11 +15,11 @@ if [ -f "$PID_LOG" ]; then
if [[ $PID_LINE == *PEER_BOOT_PID* ]]; then
LOG_PID=$(echo $PID_LINE | cut -d "=" -f 2 | cut -d "[" -f 2 | cut -d "]" -f 1)
echo "Last Peer Boot PID = $LOG_PID ..."
PID=`ps -ef | grep deployment-peer | grep $LOG_PID | grep -v grep | awk '{print $2}'`
PID=`ps -ef | grep deploy-peer- | grep $LOG_PID | grep -v grep | awk '{print $2}'`
fi
#启动文件不存在则直接通过PS进行过滤
else
PID=`ps -ef | grep $BOOT_HOME/system/deployment-peer | grep -v grep | awk '{print $2}'`
PID=`ps -ef | grep $BOOT_HOME/system/deploy-peer- | grep -v grep | awk '{print $2}'`
fi

#通过Kill命令将进程杀死


Loading…
Cancel
Save