From b93642901b91531839166d1b79e400ef4ae3f367 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Fri, 9 Oct 2020 21:31:42 +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 473c766..56430b4 100644 --- a/run.sh +++ b/run.sh @@ -2,21 +2,7 @@ function run(){ nohup yarn start & - - while true - do - pid=`findPortPid $PORT` - if [ -z $pid ] - then - echo "pid not found!!!" - sleep 1s - else - echo "pid is $pid" - break - fi - done - - touch $pid.log && chmod +x $pid.log + savePid $PORT } killNode run \ No newline at end of file