Is there a way in Java to handle a received SIGTERM?
Yes, you can register a shutdown hook with Runtime.addShutdownHook().
Runtime.addShutdownHook()
1.4m articles
1.4m replys
5 comments
57.0k users