Skip to content

Commit 9c43423

Browse files
committed
fix(model-server): properly handle signals in the docker container
Use exec in the model-server launcher script used in the Docker image to ensure that SIGTERM etc. reach the started java process. Otherwise, Ctrl-C cannot be used to terminate the docker container and k8s will have to resort to killing instead of graceful shutdown.
1 parent 24bb00a commit 9c43423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model-server/run-model-server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5071 -XX:MaxRAMPercentage=75 -Djdbc.url=$jdbc_url -cp "model-server/build/libs/*" org.modelix.model.server.Main "$@"
3+
exec java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5071 -XX:MaxRAMPercentage=75 -Djdbc.url=$jdbc_url -cp "model-server/build/libs/*" org.modelix.model.server.Main "$@"

0 commit comments

Comments
 (0)