You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GNU/Linux startup script always exits with code 0 #507
The GNU/Linux startup script always ends with exit 0, so the app's exit code is lost: scripts and service managers that run the app see success even when it fails.
Where
linux/startup.sh.vtl, line 102: exit 0 after running Java.
Possible fix
Run Java with exec (the script is no longer needed once Java starts, and signals then reach the JVM directly), or keep the script and exit $? after Java.
Fixed in devel (29e3392): the startup script runs Java with exec, so the app's exit code (and signals) reach the caller. The GNU/Linux smoke tests check that an app exiting with code 3 returns 3.
It will ship in 2.0.1, and I'll close this issue then.
How to test 2.0.1-SNAPSHOT
Important
Since 2.0.0 the groupId, the Gradle plugin id and the Java packages are io.github.javapackager (see Upgrading to 2.0).
Maven, add the snapshots repository and use the snapshot version:
Activity
Fix the bugs found while documenting 2.0.0
fvarrui commentedon Oct 11, 2026
Fixed in
devel(29e3392): the startup script runs Java withexec, so the app's exit code (and signals) reach the caller. The GNU/Linux smoke tests check that an app exiting with code 3 returns 3.It will ship in 2.0.1, and I'll close this issue then.
How to test
2.0.1-SNAPSHOTImportant
Since 2.0.0 the
groupId, the Gradle plugin id and the Java packages areio.github.javapackager(see Upgrading to 2.0).Maven, add the snapshots repository and use the snapshot version:
Gradle, add the snapshots repository in
settings.gradle:pluginManagement { repositories { maven { url = 'https://central.sonatype.com/repository/maven-snapshots/' } gradlePluginPortal() } }and use the snapshot version in
build.gradle:plugins { id 'io.github.javapackager' version '2.0.1-SNAPSHOT' }See Snapshot versions for more.