added ping to the entrypoint too
This commit is contained in:
parent
13a5bbb817
commit
b7f7708817
|
@ -1,8 +1,11 @@
|
||||||
set -e
|
set -e
|
||||||
isConnected="/opt/mssql-tools/bin/sqlcmd -S $1 -U $2 -P $3"
|
|
||||||
|
while ! ping -c3 $1 &>/dev/null; do echo "Ping Fail - `date`"; done ; echo "Host Found - `date`";
|
||||||
|
|
||||||
|
testConnection="/opt/mssql-tools/bin/sqlcmd -S $1 -U $2 -P $3"
|
||||||
|
|
||||||
until $isConnected; do
|
until $testConnection; do
|
||||||
>&2 echo "SQL Server is starting up..."
|
>&2 echo "SQL Server is starting up.."
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue