增加openresty

master
pan 4 years ago
parent 40e0f49bd6
commit 65238ea53a
  1. 8
      shell/savePid

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

Loading…
Cancel
Save