Add Heat templates and scripts for vLBMS
[demo.git] / vnfs / vLBMS / scripts / run_health_vdns.sh
diff --git a/vnfs/vLBMS/scripts/run_health_vdns.sh b/vnfs/vLBMS/scripts/run_health_vdns.sh
new file mode 100644 (file)
index 0000000..8851fa9
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+PID=$(service bind9 status | grep active)
+if [[ -z $PID ]]; then
+  echo "unhealthy" > status.txt
+else
+  echo "healthy" > status.txt
+fi