增加openresty

master
pan 4 years ago
parent 5adf3cfe34
commit 9ea77b4b9f
  1. 7
      shell/savePid

@ -4,14 +4,13 @@
second=5s second=5s
while true while true
do do
pid=`findPortPid $1` if [ -z "`findPortPid $1`" ]
if [ -z `echo $pid` ]
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>run.pid echo `findPortPid $1`>run.pid
break break
fi fi
done done

Loading…
Cancel
Save