aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/vLBMS/scripts/run_health.sh
blob: ed3b0423fea679b7bfe91c51ee7a7ff7f2a17900 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

SERVICE=$(cat /opt/config/service.txt)

PID=$(pgrep $SERVICE)
if [[ -z $PID ]]; then
  echo "unhealthy" > status.txt
else
  echo "healthy" > status.txt
fi