From c1401c34294224b54e0d5d3e0cec344cb8b99cf8 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Fri, 9 Oct 2020 21:27:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.sh | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/run.sh b/run.sh index 3d511a2..473c766 100644 --- a/run.sh +++ b/run.sh @@ -19,18 +19,4 @@ function run(){ touch $pid.log && chmod +x $pid.log } -if [ -e *.log ] -then - pid=`stat *.log|awk 'NR>1{next}{c=$0;gsub(/\D/,"",c);print c}'` - kill -9 $pid - if [ $? -eq 0 ] - then - echo "kill $pid success" - rm -f *.log - run - else - echo "kill $pid error" - fi -else - run -fi \ No newline at end of file +killNode run \ No newline at end of file