From 8bfc28dc8395886274c9c4e01a3cac94c74b1768 Mon Sep 17 00:00:00 2001 From: "Bastian (BaM)" Date: Sat, 13 Sep 2025 20:01:27 +0200 Subject: [PATCH] Move infinite sleep to the correct position in the script to prevent premature exit --- scripts/auto-boot-ollama-host.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/auto-boot-ollama-host.sh b/scripts/auto-boot-ollama-host.sh index 1cb33bb..3332df2 100644 --- a/scripts/auto-boot-ollama-host.sh +++ b/scripts/auto-boot-ollama-host.sh @@ -32,6 +32,9 @@ send_wol() { log "Watching logs for container='${CONTAINER_NAME}' since='${SINCE}'" log "Looking for pattern: ${ERROR_PATTERN}" +echo "Exited. Sleeping..." +sleep infinity + # Stream logs and parse "${DOCKER_CLI}" logs -f --since "${SINCE}" "${CONTAINER_NAME}" 2>&1 | \ while IFS= read -r line; do @@ -58,6 +61,3 @@ while IFS= read -r line; do # log "Ollama reachable again." fi done - -echo "Exited. Sleeping..." -sleep infinity \ No newline at end of file