blob: 8f50d00b1018b2bbd22b24d1835876160da1fcb4 [file] [log] [blame]
BjornMagnussonXAc4c62f22019-03-06 14:11:57 +00001#!/usr/bin/env bash
2
BjornMagnussonXAd3104ef2019-03-26 12:48:46 +00003DFC_ROOT=$WORKSPACE/scripts/dcaegen2-collectors-datafile/dfc-management
4cd $DFC_ROOT
5source dfc-start.sh
BjornMagnussonXAc4c62f22019-03-06 14:11:57 +00006
7#Wait for initialization of the DFC service
8for i in {1..10}; do
9if [ $(curl -so /dev/null -w '%{response_code}' http://localhost:8100/heartbeat ) -eq 200 ]
10then
11 echo "DFC Service running"
12 break
13else
14 echo sleep $i
15 sleep $i
16fi
17done
18