blob: 9d23f723e5194c9d2caadb790589915462f8b3f0 [file] [log] [blame]
badhri854c028b32021-11-03 18:24:05 -05001#!/bin/sh
2
3# Copyright 2021-present Open Networking Foundation
4#
Ajay Lotan Thakur03189d22022-02-10 14:06:03 -06005# SPDX-License-Identifier: Apache-2.0
badhri854c028b32021-11-03 18:24:05 -05006
7while ! curl -f --connect-timeout 5 http://spgwc:8080/startup
8do
9 echo Waiting for SPGWC to be ready
10 sleep 5
11done
12echo SPGWC is ready
13
14echo Posting to sync URL {{ .Values.config.spgwc.managedByRoc.syncUrl }}
15while ! curl --connect-timeout 5 -f -X POST {{ .Values.config.spgwc.managedByRoc.syncUrl }}
16do
17 echo Failed posting to sync URL
18 sleep 5
19done
20echo
21
22echo Sleeping forever
23while true
24do
25 sleep 86400
26done