From 0dc96c6799655a891fe9864f9b9ca5a448478c98 Mon Sep 17 00:00:00 2001 From: Jochen Ehret Date: Thu, 28 May 2026 16:45:39 +0200 Subject: [PATCH 1/2] Remove unused health check script * this health check was used for Consul --- jobs/cloud_controller_ng/spec | 1 - jobs/cloud_controller_ng/templates/dns_health_check.erb | 8 -------- 2 files changed, 9 deletions(-) delete mode 100644 jobs/cloud_controller_ng/templates/dns_health_check.erb diff --git a/jobs/cloud_controller_ng/spec b/jobs/cloud_controller_ng/spec index 623440c1a9..307b74a6ec 100644 --- a/jobs/cloud_controller_ng/spec +++ b/jobs/cloud_controller_ng/spec @@ -20,7 +20,6 @@ templates: cloud_controller_api_health_check.erb: bin/cloud_controller_ng_health_check ccng_monit_http_healthcheck.sh.erb: bin/ccng_monit_http_healthcheck console.erb: bin/console - dns_health_check.erb: bin/dns_health_check drain.sh.erb: bin/drain droplets_ca_cert.pem.erb: config/certs/droplets_ca_cert.pem local_blobstore_downloads.conf.erb: config/local_blobstore_downloads.conf diff --git a/jobs/cloud_controller_ng/templates/dns_health_check.erb b/jobs/cloud_controller_ng/templates/dns_health_check.erb deleted file mode 100644 index 039e0f5bbc..0000000000 --- a/jobs/cloud_controller_ng/templates/dns_health_check.erb +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -nc -z 127.0.0.1 <%= p("cc.external_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 From ec457b4e5b70f22ac23248a71ba762b4966d23f3 Mon Sep 17 00:00:00 2001 From: Jochen Ehret Date: Mon, 1 Jun 2026 14:15:11 +0200 Subject: [PATCH 2/2] Remove unused health check script in "blobstore" job * this health check was used for Consul --- jobs/blobstore/spec | 1 - jobs/blobstore/templates/dns_health_check.erb | 8 -------- 2 files changed, 9 deletions(-) delete mode 100644 jobs/blobstore/templates/dns_health_check.erb diff --git a/jobs/blobstore/spec b/jobs/blobstore/spec index 6ede3bbff2..650093bfef 100644 --- a/jobs/blobstore/spec +++ b/jobs/blobstore/spec @@ -5,7 +5,6 @@ templates: bpm.yml.erb: config/bpm.yml bin/blobstore_nginx.erb: bin/blobstore_nginx - dns_health_check.erb: bin/dns_health_check nginx.conf.erb: config/nginx.conf blobstore.conf.erb: config/sites/blobstore.conf mime.types: config/mime.types diff --git a/jobs/blobstore/templates/dns_health_check.erb b/jobs/blobstore/templates/dns_health_check.erb deleted file mode 100644 index 05680e17dd..0000000000 --- a/jobs/blobstore/templates/dns_health_check.erb +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -nc -z 127.0.0.1 <%= p("blobstore.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