From 0c14ca58c7405d1e629d00b3a33f3420927ec710 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sun, 27 Oct 2019 10:56:16 -0700 Subject: [PATCH] Invoke on-reboot from cloud startup script to avoid racing with cron (#6579) automerge --- net/gce.sh | 6 ++++++ net/remote/remote-node.sh | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/net/gce.sh b/net/gce.sh index ad3f226310..43fd4154b1 100755 --- a/net/gce.sh +++ b/net/gce.sh @@ -662,6 +662,7 @@ EOF set -ex if [[ -f /solana-scratch/.instance-startup-complete ]]; then + echo reboot $( cd "$here"/scripts/ if "$enableGpu"; then @@ -672,6 +673,9 @@ if [[ -f /solana-scratch/.instance-startup-complete ]]; then cat mount-additional-disk.sh fi ) + if [[ -x ~solana/solana/on-reboot ]]; then + sudo -u solana ~solana/solana/on-reboot + fi # Skip most setup on instance reboot exit 0 @@ -733,6 +737,8 @@ $( ) cat > /etc/motd <