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