From d3573ee990ba9b47d74aaaa4662e797bdf3d7954 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sun, 11 Oct 2020 07:13:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0openresty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/killNode | 4 +++- shell/updateRisk | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/shell/killNode b/shell/killNode index 0009f4d..a661908 100644 --- a/shell/killNode +++ b/shell/killNode @@ -10,12 +10,14 @@ then echo "成功杀死进程:$p" rm -f run.pid else - echo "无法杀死进程:$p" + echo "无法杀死进程:$p,重启$1失败" result=0 fi fi if [ $result -eq 1 ] then + echo "执行$1的运行脚本" ./run.sh + echo "执行$1的运行脚本返回结果:$?" fi diff --git a/shell/updateRisk b/shell/updateRisk index de1fb3d..c2d3afe 100644 --- a/shell/updateRisk +++ b/shell/updateRisk @@ -23,7 +23,7 @@ function run(){ then git clone git@gogs.kirito.cool:panqihua/$1.git fi - cd $1 && git reset --hard && git pull && yarn && chmod +x run.sh && killNode + cd $1 && git reset --hard && git pull && yarn && chmod +x run.sh && killNode $1 } run $1