Add --install-exit-handlers to support shutdown hook + SIGTERM (#1540)

This commit is contained in:
Michiel Borkent 2023-04-19 21:55:47 +02:00 committed by GitHub
parent f7907be86e
commit 63102eca86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -43,6 +43,7 @@ args=("-jar" "$BABASHKA_JAR"
"--verbose"
"--no-fallback"
"--native-image-info"
"--install-exit-handlers"
# --trace-class-initialization=jdk.internal.net.http.common.DebugLogger,jdk.internal.net.http.websocket.WebSocketImpl,jdk.internal.net.http.common.Utils
"$BABASHKA_XMX"
"--enable-preview")

View file

@ -30,6 +30,7 @@ call %GRAALVM_HOME%\bin\native-image.cmd ^
"--verbose" ^
"--no-fallback" ^
"--enable-preview" ^
"--install-exit-handlers" ^
"%BABASHKA_XMX%"
if %errorlevel% neq 0 exit /b %errorlevel%