Skip to content
Snippets Groups Projects
Commit d5561744 authored by Daniel Black's avatar Daniel Black
Browse files

healthcheck.sh add --no-connect option

There is an implicit --connect option in healthcheck
so that a normal use can be sure MariaDB is running
on a tcp socket.

There is a case in /docker-entrypoint-initdb.d where
its desirable to perform healthchecks for components
without a --connect. In this case, use --no-connect
in the healthcheck to avoid an implicit --connect test.
parent 5947241c
No related branches found
No related tags found
No related merge requests found
...@@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do ...@@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do
fi fi
nodefaults= nodefaults=
;; ;;
--no-connect)
# used for /docker-entrypoint-initdb.d scripts
# where you definately don't want a connection test
connect_s=0
;;
--*) --*)
test=${1#--} test=${1#--}
;; ;;
......
...@@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do ...@@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do
fi fi
nodefaults= nodefaults=
;; ;;
--no-connect)
# used for /docker-entrypoint-initdb.d scripts
# where you definately don't want a connection test
connect_s=0
;;
--*) --*)
test=${1#--} test=${1#--}
;; ;;
......
...@@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do ...@@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do
fi fi
nodefaults= nodefaults=
;; ;;
--no-connect)
# used for /docker-entrypoint-initdb.d scripts
# where you definately don't want a connection test
connect_s=0
;;
--*) --*)
test=${1#--} test=${1#--}
;; ;;
......
...@@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do ...@@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do
fi fi
nodefaults= nodefaults=
;; ;;
--no-connect)
# used for /docker-entrypoint-initdb.d scripts
# where you definately don't want a connection test
connect_s=0
;;
--*) --*)
test=${1#--} test=${1#--}
;; ;;
......
...@@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do ...@@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do
fi fi
nodefaults= nodefaults=
;; ;;
--no-connect)
# used for /docker-entrypoint-initdb.d scripts
# where you definately don't want a connection test
connect_s=0
;;
--*) --*)
test=${1#--} test=${1#--}
;; ;;
......
...@@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do ...@@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do
fi fi
nodefaults= nodefaults=
;; ;;
--no-connect)
# used for /docker-entrypoint-initdb.d scripts
# where you definately don't want a connection test
connect_s=0
;;
--*) --*)
test=${1#--} test=${1#--}
;; ;;
......
...@@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do ...@@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do
fi fi
nodefaults= nodefaults=
;; ;;
--no-connect)
# used for /docker-entrypoint-initdb.d scripts
# where you definately don't want a connection test
connect_s=0
;;
--*) --*)
test=${1#--} test=${1#--}
;; ;;
......
...@@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do ...@@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do
fi fi
nodefaults= nodefaults=
;; ;;
--no-connect)
# used for /docker-entrypoint-initdb.d scripts
# where you definately don't want a connection test
connect_s=0
;;
--*) --*)
test=${1#--} test=${1#--}
;; ;;
......
...@@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do ...@@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do
fi fi
nodefaults= nodefaults=
;; ;;
--no-connect)
# used for /docker-entrypoint-initdb.d scripts
# where you definately don't want a connection test
connect_s=0
;;
--*) --*)
test=${1#--} test=${1#--}
;; ;;
......
...@@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do ...@@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do
fi fi
nodefaults= nodefaults=
;; ;;
--no-connect)
# used for /docker-entrypoint-initdb.d scripts
# where you definately don't want a connection test
connect_s=0
;;
--*) --*)
test=${1#--} test=${1#--}
;; ;;
......
...@@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do ...@@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do
fi fi
nodefaults= nodefaults=
;; ;;
--no-connect)
# used for /docker-entrypoint-initdb.d scripts
# where you definately don't want a connection test
connect_s=0
;;
--*) --*)
test=${1#--} test=${1#--}
;; ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment