Resolve "Started Extra Services restart on OS reboot"

This commit is contained in:
Steven Foerster
2021-03-21 16:09:58 +00:00
parent 445cf2678e
commit d65e5434a0
15 changed files with 42 additions and 1 deletions
+12 -1
View File
@@ -32,4 +32,15 @@ else
echo "No init script. Proceeding."
fi
exec "$@"
# ensure base is up and listening
echo "Waiting for Mistborn-base to finish starting up..."
while ! nc -z 10.2.3.1 5000; do
WAIT_TIME=$((5 + $RANDOM % 15))
echo "Waiting ${WAIT_TIME} seconds for Mistborn-base..."
sleep ${WAIT_TIME}
done
echo "Mistborn-base is running"
exec "$@"