We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a91684 commit 5d7b25aCopy full SHA for 5d7b25a
dubbo-container/dubbo-container-api/src/main/resources/META-INF/assembly/bin/start.sh
@@ -90,7 +90,7 @@ while [ $COUNT -lt 1 ]; do
90
sleep 1
91
if [ -n "$SERVER_PORT" ]; then
92
if [ "$SERVER_PROTOCOL" == "dubbo" ]; then
93
- COUNT=`echo status | nc -i 1 $SERVER_HOST $SERVER_PORT | grep -c OK`
+ COUNT=`(sleep 1; echo -e '\n'; sleep 1; echo status; sleep 1)| telnet $SERVER_HOST $SERVER_PORT | grep -c OK`
94
else
95
COUNT=`netstat -an | grep $SERVER_PORT | wc -l`
96
fi
0 commit comments