diff options
Diffstat (limited to 'sources/hv-collector-main/src/main/docker/healthcheck.sh')
-rwxr-xr-x | sources/hv-collector-main/src/main/docker/healthcheck.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/hv-collector-main/src/main/docker/healthcheck.sh b/sources/hv-collector-main/src/main/docker/healthcheck.sh new file mode 100755 index 00000000..db62eece --- /dev/null +++ b/sources/hv-collector-main/src/main/docker/healthcheck.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +curl -f http://localhost:${VESHV_HEALTH_CHECK_API_PORT:-6060}/health/ready || exit 1 +nc -vz localhost ${VESHV_LISTEN_PORT:-6061} || exit 2 |