aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/optf-has/has/wait_for_port.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/optf-has/has/wait_for_port.sh')
-rwxr-xr-xscripts/optf-has/has/wait_for_port.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/optf-has/has/wait_for_port.sh b/scripts/optf-has/has/wait_for_port.sh
deleted file mode 100755
index 10f08ded..00000000
--- a/scripts/optf-has/has/wait_for_port.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-if [[ $# -ne 2 ]]; then
- echo "Usage: wait-for-port hostname port" >&2
- exit 1
-fi
-
-host=$1
-port=$2
-
-echo "Waiting for $host port $port open"
-until telnet $host $port </dev/null 2>/dev/null | grep -q '^Connected'; do
- sleep 1
-done
-
-echo "$host port $port is open"
-
-exit 0