From 09dfae412c3c539f93bca6ca202168ffb0f4983a Mon Sep 17 00:00:00 2001 From: Marcel <34819524+MarcelCoding@users.noreply.github.com> Date: Tue, 9 Apr 2024 18:59:33 +0200 Subject: [PATCH] Replace bash process using java process instead of creating a sub process (#1452) This enables docker to do a graceful shutdown of the container, because the java process gets notified that it should be terminated. Co-authored-by: Anastasiya <45152336+LonwoLonwo@users.noreply.github.com> Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com> --- deploy/scripts/run-server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/scripts/run-server.sh b/deploy/scripts/run-server.sh index 17ddf088f7..426693ded8 100755 --- a/deploy/scripts/run-server.sh +++ b/deploy/scripts/run-server.sh @@ -9,7 +9,7 @@ echo "Starting Cloudbeaver Server" && [ ! -f "workspace/GlobalConfiguration/.dbeaver/data-sources.json" ] \ && cp conf/initial-data-sources.conf workspace/GlobalConfiguration/.dbeaver/data-sources.json -java ${JAVA_OPTS} \ +exec java ${JAVA_OPTS} \ -Dfile.encoding=UTF-8 \ --add-modules=ALL-SYSTEM \ --add-opens=java.base/java.io=ALL-UNNAMED \