#!/bin/bash -e

set +e
host -r <%= p("dns_health_check_host") %>
if [[ "0" != "$?" ]]; then
  echo "DNS is not up"
  exit 1
fi
set -e

#!/bin/bash -e

LOG_DIR=/var/vcap/sys/log/routing-api

source /var/vcap/packages/routing_utils/syslog_utils.sh

tee_output_to_sys_log "${LOG_DIR}" "routing_api"

set +e
host -r <%= p("dns_health_check_host") %>
if [[ "0" != "$?" ]]; then
  echo "DNS is not up"
  exit 1
fi
set -e

Add back tee to vcap.routing_api.stdout - will need to filter syslog to avoid double logs
Add back tee to vcap.routing_api.stdout
- will need to filter syslog to avoid double logs

[#158365506]
