Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Cannot Reproduce
-
1.0.10, 1.0.15
-
None
-
None
Description
This seems to be similar to DAEMON-165, but I do not have the right to reopen it.
Write a main method like this:
public static void main(String[] args) throws Exception { throw new Exception("bad luck"); }
If started as a service, the service will keep running as if everything is ok.
Workaround: wrap all code into a try/catch(Throwable) and print/log the throwable in the Java code itself. Then exit normally, which will then actually prompt prunsrv to exit.