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

4 years ago
#!/bin/sh
4 years ago
function run(){
nohup yarn start &
4 years ago
4 years ago
while true
4 years ago
do
4 years ago
pid=`findPortPid $PORT`
4 years ago
if [ -z $pid ]
4 years ago
then
4 years ago
echo "pid not found!!!"
4 years ago
sleep 1s
4 years ago
else
echo "pid is $pid"
break
4 years ago
fi
4 years ago
done
4 years ago
4 years ago
touch $pid.log && chmod +x $pid.log
4 years ago
}
4 years ago
killNode run