Is there a way in Java to handle a received SIGTERM?
Yes, you can register a shutdown hook with Runtime.addShutdownHook().
Runtime.addShutdownHook()
2.1m questions
2.1m answers
60 comments
57.0k users