|
|
@ -5,13 +5,13 @@ echo "findPort $1" |
|
|
|
second=5s |
|
|
|
second=5s |
|
|
|
while true |
|
|
|
while true |
|
|
|
do |
|
|
|
do |
|
|
|
pid=`findPortPid $1` |
|
|
|
|
|
|
|
if [ `$pid|wc -l` -eq 0 ] |
|
|
|
if [ `findPortPid $1|wc -l` -eq 0 ] |
|
|
|
then |
|
|
|
then |
|
|
|
echo "没有找到端口:$1的pid,$second后重试" |
|
|
|
echo "没有找到端口:$1的pid,$second后重试" |
|
|
|
sleep $second |
|
|
|
sleep $second |
|
|
|
else |
|
|
|
else |
|
|
|
echo "端口:$1的pid:$pid" |
|
|
|
echo "端口:$1的pid:`findPortPid $1`" |
|
|
|
echo $pid>pid |
|
|
|
echo $pid>pid |
|
|
|
break |
|
|
|
break |
|
|
|
fi |
|
|
|
fi |
|
|
|