From 470390b2ecb19c9b715f2acef3734b71aaa11ec7 Mon Sep 17 00:00:00 2001 From: Alexander Guy Date: Tue, 3 Dec 2024 12:18:53 -0500 Subject: [PATCH] If there's no startup policy, leave out the RPC checking code --- pkg/agave/assets/check-validator.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/agave/assets/check-validator.tmpl b/pkg/agave/assets/check-validator.tmpl index 7d75ae7..fb63c72 100644 --- a/pkg/agave/assets/check-validator.tmpl +++ b/pkg/agave/assets/check-validator.tmpl @@ -1,6 +1,7 @@ #!/usr/bin/env bash set -euo pipefail +{{if .StartupPolicy }} WAIT_FOR_RPC_HEALTH={{ or .StartupPolicy.WaitForRPCHealth false }} RPC_BIND_ADDRESS={{.Flags.RpcBindAddress}} RPC_PORT={{.Flags.RpcPort}} @@ -29,3 +30,4 @@ done echo "timed out waiting for validator to bring RPC online!" 1>&2 exit 1 +{{end}}