You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
riskcloudmock/run.sh

22 lines
282 B

#!/bin/sh
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
}
killNode run