#!/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


#!/bin/bash

openssl s_client -connect localhost:<%= 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 openssl instead of nc for health check
Use openssl instead of nc for health check

This should kill the ugly handshake errors that we currently see in the log files.

[#158140121]
