Skip to content

Commit

Permalink
Wait for token as well
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah-witt committed Dec 5, 2022
1 parent be3f0ea commit aa1f50d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/scripts/update_agent_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ main() {
timeout=0

while [ $timeout -lt 120 ]; do
echo "Waiting for agent process to start"
echo "Waiting for agent or dogstatsd process to start"

if pgrep -f ./agent; then
echo "Found agent process"
break
if test -f "/home/vcap/app/.datadog/dist/auth_token"; then
echo "Found agent token"
break
fi
fi

if pgrep -f ./dogstatsd; then
Expand Down

0 comments on commit aa1f50d

Please sign in to comment.