From abf0e6c539e47f4e5a0ae3b77aef72a70af4c48b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 27 Mar 2022 15:24:15 +0800 Subject: [PATCH] 1 --- scripts/publish_pm2_cpp_i_n/boundle.sh | 2 +- scripts/publish_pm2_cpp_i_n/restart.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/publish_pm2_cpp_i_n/boundle.sh b/scripts/publish_pm2_cpp_i_n/boundle.sh index 8ec168a..0b2bf2a 100644 --- a/scripts/publish_pm2_cpp_i_n/boundle.sh +++ b/scripts/publish_pm2_cpp_i_n/boundle.sh @@ -13,4 +13,4 @@ tag_name=`git status |grep '# On branch '|sed 's/# On branch //g'` dir_name=`basename $PWD` package_name=${dir_name}.tar.gz -tar --exclude=*.git -chzf target/${package_name} bin common.sh reload.sh restart.sh config ${EXT_PKG_FILES} +tar --exclude=*.git -chzf target/${package_name} bin common.sh reload.sh restart.sh ecosystem.config.js config ${EXT_PKG_FILES} diff --git a/scripts/publish_pm2_cpp_i_n/restart.sh b/scripts/publish_pm2_cpp_i_n/restart.sh index 3e80fba..7d71d76 100755 --- a/scripts/publish_pm2_cpp_i_n/restart.sh +++ b/scripts/publish_pm2_cpp_i_n/restart.sh @@ -1,12 +1,11 @@ #!/bin/bash -#source ./common.sh +source ./common.sh -#ps -ef|grep ${PROJECT_NAME} > bin/ps.log +ps -ef|grep ${PROJECT_NAME} > bin/ps.log instances=(${1//,/ }) n=$2 -PROJECT_NAME=wsproxy2004 for i in ${instances[@]} do