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
Let's assume I have an spring boot application. Then I wan't to shutdown it. I'd like to sent SIGTERM and after defined grace period SIGKILL. Is it possible to catch SIGTERM and perform some actions, close controllers and then after all pending requests been processed shutdown application?
So far I tried to register shutdown hook but it's doesn't work.
The text was updated successfully, but these errors were encountered:
If you have any further questions then, as mentioned in the guidelines for contributing, please ask on Stack Overflow as we prefer to use GitHub issues only for bugs and enhancements. Alternatively, you can chat with the Spring Boot community on Gitter.
janisz
changed the title
How to graceful shutdown spring boot application.
How to graceful handle SIGTERM
Aug 10, 2016
Question
Let's assume I have an spring boot application. Then I wan't to shutdown it. I'd like to sent SIGTERM and after defined grace period SIGKILL. Is it possible to catch SIGTERM and perform some actions, close controllers and then after all pending requests been processed shutdown application?
So far I tried to register shutdown hook but it's doesn't work.
The text was updated successfully, but these errors were encountered: