Merge "Fix sending of vm_flavor to Robot VM"
[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