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