Files
rustfs/scripts/probe.sh
JimChenWYU ed85e4e24c add probe
2024-09-24 15:00:59 +08:00

13 lines
147 B
Bash

#!/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