196b742ba2
The -q (aka --disable) option only works if it is the first parameter on the command line. Change-Id: Ia9ab0bdc95e658c17e5be5abefcf96f1c05ee84f Closes-Bug: #1967272
13 lines
501 B
Bash
Executable File
13 lines
501 B
Bash
Executable File
#!/bin/bash
|
|
: ${HEALTHCHECK_CURL_MAX_TIME:=10}
|
|
: ${HEALTHCHECK_CURL_USER_AGENT:=curl-healthcheck}
|
|
: ${HEALTHCHECK_CURL_WRITE_OUT:='\n%{http_code} %{remote_ip}:%{remote_port} %{time_total} seconds\n'}
|
|
: ${HEALTHCHECK_CURL_OUTPUT:='/dev/null'}
|
|
|
|
export NSS_SDB_USE_CACHE=no
|
|
curl -q -g -k -s -S --fail -o "${HEALTHCHECK_CURL_OUTPUT}" \
|
|
--max-time "${HEALTHCHECK_CURL_MAX_TIME}" \
|
|
--user-agent "${HEALTHCHECK_CURL_USER_AGENT}" \
|
|
--write-out "${HEALTHCHECK_CURL_WRITE_OUT}" \
|
|
"$@" || exit 1
|