3 # Copyright (C) The Arvados Authors. All rights reserved.
5 # SPDX-License-Identifier: Apache-2.0
7 # GCP nodes sometimes have no outbound working network for the first few
10 # This script will wait until git.arvados.org is reachable.
13 # Send all stdout/stderr to the log and to the terminal
14 exec > >(tee -a /tmp/boot-wait.log) 2>&1
18 echo "Starting node-ready.sh"
20 while ! /bin/nc -w1 -z git.arvados.org 22; do
21 echo "Connect failed, waiting 1 second..."
26 # All set! Enable and start sshd so jenkins can start the agent...
27 echo "Re-enabling sshd..."
28 /bin/systemctl enable ssh || true
29 echo "Starting sshd..."
30 /bin/systemctl start ssh || /bin/systemctl status ssh
32 echo "Completed node-ready.sh"