Skip to content

Control registering of shutdownhook#170

Open
JelmerBouma1985 wants to merge 1 commit intozonkyio:masterfrom
JelmerBouma1985:feature/control-register-shutdown-hook
Open

Control registering of shutdownhook#170
JelmerBouma1985 wants to merge 1 commit intozonkyio:masterfrom
JelmerBouma1985:feature/control-register-shutdown-hook

Conversation

@JelmerBouma1985
Copy link

Added property registerShutdownHook to EmbeddedPostgres. Default the shutdownHook is registered. When this property is set to false no shutdown hook is registered. This makes it possible to create a spring bean of EmbeddedPostgres and let spring handle the shutdown of the EmbeddedPostgres instance in the right order and let the application shutdown gracefully

…shutdownHook is registered. When this property is set to false no shutdown hook is registered. This makes it possible to create a spring bean of EmbeddedPostgres and let spring handle the shutdown of the EmbeddedPostgres instance in the right order and let the application shutdown gracefully
@JelmerBouma1985
Copy link
Author

JelmerBouma1985 commented Dec 3, 2025

This fixes the issue I added to embedded-database-spring-test. I now see this should be registered in this project:

zonkyio/embedded-database-spring-test#311

@JelmerBouma1985
Copy link
Author

@tomix26 can you look at this PR please? I'm now using a fork of zonky fixing this but i would like to get rid of this fork.
I'm mentioning you because i see your name all over the codebase :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant