I've noticed that al the java services I start with YAJSW end up with -Xrs (setting the JVM to ignore OS signals as described at http://docs.oracle.com/javase/1.3/docs/tooldocs/solaris/java.html\) even though I do not set this in the jvm-opts of my service config.
Unfortunately this seems to mean that shutdown hooks are never driven, and we suspect it may be related to issues we've seen with java processes being left behind when the wrapper shuts down (though it may not be related).
Is it intentional that YAJSW always sets this flag? The doc on http://yajsw.sourceforge.net/YAJSW%20Configuration%20Parameters.html under wrapper.ignore_signals suggests it should only be turend on if "wrapper.java.additional.jvm-opts=-Xsr" is set (incidentally, there's a typo in the flag there - it should be Xrs).
If it is intended, is there any way we can ensure java processes started by YAJSW receive SIGHUP or SIGTERM signals and run their shutdown hooks?