Can JLine handle a SIGTERM with the signal handler? I've used a signal handler for a long time to receive SIGINT like when Ctrl-C is pressed, but lately after doing more work on Docker with my JLine-powered console app, I noticed that when shutting down a docker container running a JVM CLI daemon process, a SIGTERM is used and I wanted to be able to interrupt my Main thread like I do with a SIGINT so everything can shutdown cleanly. However, the SignalHandler doesn't seem to be called at all for a SIGTERM and the JVM just exits immediately. .
If I register a shutdown hook on the JVM, I can accomplish this manually (interrupting the Main thread), but I wanted to make sure I wasn't missing a JLine way to do it.
Thanks!
~Brad
Developer Advocate
Ortus Solutions, Corp