From b240fd139ae863b0285e50efcbda7b7b8e0b620f Mon Sep 17 00:00:00 2001 From: Raphael Glon Date: Thu, 10 Oct 2024 18:26:20 +0200 Subject: [PATCH] tgi-entrypoint: exec instead of spawning a child process reason: otherwise parent will receive the signals when we'd like tgi to receive them keeping the parent/child is not necessary and would require the parent to handle signals to forward them properly to the child Signed-off-by: Raphael Glon --- tgi-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgi-entrypoint.sh b/tgi-entrypoint.sh index ea94dcd9..278c7d96 100755 --- a/tgi-entrypoint.sh +++ b/tgi-entrypoint.sh @@ -2,4 +2,4 @@ ldconfig 2>/dev/null || echo 'unable to refresh ld cache, not a big deal in most cases' -text-generation-launcher $@ +exec text-generation-launcher $@