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.
            Asked
            
        
        
            Active
            
        
            Viewed 178 times
        
    1
            
            
        - 
                    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