From dfc6ba8a0dcb3acd0f1d768b28985d0f89fab3ae Mon Sep 17 00:00:00 2001 From: Tracey Jaquith Date: Sat, 2 Mar 2024 15:43:39 -0800 Subject: [PATCH] more resilient bootstrapping --- bin/bootstrap.sh | 2 ++ bin/shutdown.sh | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/bootstrap.sh b/bin/bootstrap.sh index 351d04e..60f9a0b 100755 --- a/bin/bootstrap.sh +++ b/bin/bootstrap.sh @@ -124,3 +124,5 @@ if [ ! $FIRST ]; then nomad server members echo fi + +exit 0 diff --git a/bin/shutdown.sh b/bin/shutdown.sh index 6b08491..3505ce5 100755 --- a/bin/shutdown.sh +++ b/bin/shutdown.sh @@ -1,8 +1,7 @@ -#!/bin/zsh -eu +#!/bin/zsh -u # cleanly & quietly shutdown so we dont have a dangling supervisord socket at `podman commit` time ( - cd /etc/supervisor supervisorctl stop nomad supervisorctl stop consul supervisorctl stop consul-template