add probe

This commit is contained in:
JimChenWYU
2024-09-24 15:00:59 +08:00
parent d0f52a2b78
commit ed85e4e24c
3 changed files with 20 additions and 3 deletions

12
scripts/probe.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
IP=127.0.0.1
PORT=9000
while true; do
nc -zv ${IP} ${PORT}
if [[ "$?" == "0" ]]; then
exit 0
fi
sleep 2
done