NSSM Service (as Java executable) does not stop properly
I run a NSSM Service (windows 11) which simply uses a jar with dependencies with a main method as entry point. The main method has an endless loop running which can only be left on certain errors. When I now stop the NSSM service, it stays in that Stopping state forever. I guess the reason for it is that the underlying java code has nothing implemented to exit on that stopping signal – is there any documentation on how to do that? Or is my assumption false anyway? Thank you for any help!