1

How do I ignore SIGTERM and keep running my program in Java? Please note that I am not looking at options for graceful shutdown. I just want to ignore the SIGTERM.

Raedwald
  • 46,613
  • 43
  • 151
  • 237
Venkatesh Laguduva
  • 13,448
  • 6
  • 33
  • 45
  • Just to add: sun.misc.* package which have got signal handlers are not exposed in Oracle JDK but is available Open and AdaptOpenJDK. – Venkatesh Laguduva Jul 12 '19 at 10:19
  • "ignore the SIGTERM" is not really good behaviour. Most senders of SIGTERM will follow it with SIGKILL after some time. And a SIGKILL cannot be handled gracefully. – Henry Jul 12 '19 at 10:45

0 Answers0