Fix health check issue with vDNS
[demo.git] / vnfs / vLBMS / scripts / run_health_vdns.sh
index 8851fa9..a82152c 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/bash
 
-PID=$(service bind9 status | grep active)
+PID=$(service bind9 status | grep inactive)
 if [[ -z $PID ]]; then
-  echo "unhealthy" > status.txt
+       echo "healthy" > status.txt
 else
-  echo "healthy" > status.txt
+       echo "unhealthy" > status.txt
 fi