Merge branch 'main' into quorum

This commit is contained in:
weisd
2024-09-25 16:55:20 +08:00
5 changed files with 158 additions and 32 deletions

15
scripts/probe.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
# Please use POSIX Shell
# https://www.grymoire.com/Unix/Sh.html
IP=127.0.0.1
PORT=9000
while true; do
nc -zv ${IP} ${PORT}
if [ "$?" -eq "0" ]; then
exit 0
fi
sleep 2
done