Skip to content

Improved: Remove the unused shutdown trap and stop-signal script from the Docker image (OFBIZ-13809) - #2580

Merged
mridulpathak merged 1 commit into
apache:trunkfrom
mridulpathak:OFBIZ-13809
Nov 6, 2026
Merged

mridulpathak merged 1 commit into
apache:trunkfrom
mridulpathak:OFBIZ-13809

Conversation

@mridulpathak

Copy link
Copy Markdown
Contributor

The Docker entrypoint trapped SIGTERM and SIGINT to run send_ofbiz_stop_signal.sh, which sends SHUTDOWN to the admin port, but the entrypoint ends with exec, so the OFBiz JVM replaces the shell and receives the stop signal directly; docker stop already shuts OFBiz down gracefully through its shutdown hook, so the trap never ran. This removes the trap, the script and the curl package that was installed only for it. A demo image built from this change still loads its data on first run, and docker stop still stops OFBiz cleanly.

…r image

The entrypoint trapped SIGTERM and SIGINT to run send_ofbiz_stop_signal.sh, but it ends with exec, so the OFBiz JVM replaces the shell and receives the stop signal itself, and docker stop already shuts OFBiz down gracefully through its shutdown hook. The trap never ran, so remove it together with the script and the curl package that was only installed for it.
@mridulpathak
mridulpathak merged commit 7436c6e into apache:trunk Nov 6, 2026
2 checks passed
@mridulpathak
mridulpathak deleted the OFBIZ-13809 branch November 6, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant