Code Review
/
demo.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Deprecate use of sites/raw for vnf HEAT templates
[demo.git]
/
vnfs
/
vLBMS
/
scripts
/
run_health.sh
1
#!/bin/bash
2
3
SERVICE=$(cat /opt/config/service.txt)
4
5
PID=$(pgrep $SERVICE)
6
if [[ -z $PID ]]; then
7
echo "unhealthy" > status.txt
8
else
9
echo "healthy" > status.txt
10
fi