Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to graceful handle SIGTERM #6605

Closed
janisz opened this issue Aug 10, 2016 · 2 comments
Closed

How to graceful handle SIGTERM #6605

janisz opened this issue Aug 10, 2016 · 2 comments
Labels
status: duplicate A duplicate of another issue

Comments

@janisz
Copy link

janisz commented 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.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 10, 2016
@wilkinsona
Copy link
Member

See #4657

@wilkinsona wilkinsona removed the status: waiting-for-triage An issue we've not yet triaged label Aug 10, 2016
@snicoll snicoll added the status: duplicate A duplicate of another issue label Aug 10, 2016
@wilkinsona
Copy link
Member

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 janisz changed the title How to graceful shutdown spring boot application. How to graceful handle SIGTERM Aug 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants