fix: Use exec for better PID 1 handling (#2156)

Also pass the arguments along to the java execution
Previously the arguments were silently dropped

Signed-off-by: jakub-bochenski <kuba.bochenski@gmail.com>
Signed-off-by: jakub <j.bochenski@zoovu.com>
This commit is contained in:
jakub-bochenski
2025-02-21 14:06:46 +01:00
committed by GitHub
parent d70840735d
commit 5b2e7c0d85

View File

@@ -15,4 +15,9 @@ if [[ "${MESSAGING_TYPE}" != "" ]]; then
fi
echo "Please wait for the dependencies to be downloaded..."
java -Djava.security.egd=file:/dev/./urandom -jar /home/scc/stub-runner-boot.jar ${ADDITIONAL_OPTS}
exec \
java \
-Djava.security.egd=file:/dev/./urandom \
-jar /home/scc/stub-runner-boot.jar \
${ADDITIONAL_OPTS} \
"$@"