From 86bc5f1350c5841a2a7d029f5f53faf52d025fd1 Mon Sep 17 00:00:00 2001 From: cryptk <421501+cryptk@users.noreply.github.com> Date: Tue, 2 Apr 2024 02:15:44 -0500 Subject: [PATCH] fix: use exec in entrypoint scripts to fix signal handling (#1943) --- aio/entrypoint.sh | 2 +- entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aio/entrypoint.sh b/aio/entrypoint.sh index a2e040fa..5fd8d9c2 100755 --- a/aio/entrypoint.sh +++ b/aio/entrypoint.sh @@ -135,4 +135,4 @@ check_vars echo "===> Starting LocalAI[$PROFILE] with the following models: $MODELS" -/build/entrypoint.sh "$@" +exec /build/entrypoint.sh "$@" diff --git a/entrypoint.sh b/entrypoint.sh index 05f67128..fb8417df 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -47,4 +47,4 @@ else echo "@@@@@" fi -./local-ai "$@" +exec ./local-ai "$@"