Add --install-exit-handlers to support shutdown hook + SIGTERM (#1540)
This commit is contained in:
parent
f7907be86e
commit
63102eca86
2 changed files with 2 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ args=("-jar" "$BABASHKA_JAR"
|
||||||
"--verbose"
|
"--verbose"
|
||||||
"--no-fallback"
|
"--no-fallback"
|
||||||
"--native-image-info"
|
"--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
|
# --trace-class-initialization=jdk.internal.net.http.common.DebugLogger,jdk.internal.net.http.websocket.WebSocketImpl,jdk.internal.net.http.common.Utils
|
||||||
"$BABASHKA_XMX"
|
"$BABASHKA_XMX"
|
||||||
"--enable-preview")
|
"--enable-preview")
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ call %GRAALVM_HOME%\bin\native-image.cmd ^
|
||||||
"--verbose" ^
|
"--verbose" ^
|
||||||
"--no-fallback" ^
|
"--no-fallback" ^
|
||||||
"--enable-preview" ^
|
"--enable-preview" ^
|
||||||
|
"--install-exit-handlers" ^
|
||||||
"%BABASHKA_XMX%"
|
"%BABASHKA_XMX%"
|
||||||
|
|
||||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue