#!/bin/bash

nc -z 127.0.0.1 80

# http://www.consul.io/docs/agent/checks.html
if [ $? -ne 0 ]; then
  exit 2 # Exit higher than 1 to ensure service is registered as 'critical'
fi


#!/bin/bash

nc -z 127.0.0.1 <%= p('bits-service.tls.port') %>

# http://www.consul.io/docs/agent/checks.html
if [ $? -ne 0 ]; then
  exit 2 # Exit higher than 1 to ensure service is registered as 'critical'
fi


Use configured port for Consul health check
Use configured port for Consul health check

[#120659595]

Signed-off-by: Norman Sutorius <c92e212d4253616268289a70bdbb216a97333b3e@de.ibm.com>
