Code Review
/
demo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
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
+++ b/
vnfs/vLBMS/scripts/run_health_vdns.sh
@@ -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