add error handling for unexpected llama-server process exit

This commit is contained in:
mags0ft
2025-12-26 14:51:06 +01:00
parent 0c814177fe
commit 3d442d9123
+6
View File
@@ -73,6 +73,12 @@ check_server_is_running() {
else else
return 1 # failure return 1 # failure
fi fi
# check if the process is still running
if ! kill -0 $LLAMA_SERVER_PID 2>/dev/null; then
echo "start.sh: Error: llama-server process has exited unexpectedly."
exit 1
fi
} }
echo "start.sh: Waiting for llama-server to start..." echo "start.sh: Waiting for llama-server to start..."