Fix health check issue with vDNS 55/40555/1
authorMarco Platania <platania@research.att.com>
Mon, 2 Apr 2018 18:08:48 +0000 (14:08 -0400)
committerMarco Platania <platania@research.att.com>
Mon, 2 Apr 2018 18:08:48 +0000 (14:08 -0400)
Change-Id: I7737dfc81927bb04865cc60d592e2bc247962400
Issue-ID: INT-433
Signed-off-by: Marco Platania <platania@research.att.com>
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