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
  • 43,666
  • 36
  • 142
  • 227
Venkatesh Laguduva
  • 12,268
  • 5
  • 30
  • 38
  • 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