]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.init/src/org/argeo/init/Service.java
Make A2 variant search more robust
[lgpl/argeo-commons.git] / org.argeo.init / src / org / argeo / init / Service.java
index aa9494c91591605e41f2061a8864d158cdc48d51..c1eb76d0b1ed621d277e6f0f8aaee8d68bee0f9d 100644 (file)
@@ -40,7 +40,7 @@ public class Service {
                                }
                        } catch (Exception e) {
                                e.printStackTrace();
-                               System.exit(1);
+                               Runtime.getRuntime().halt(1);
                        }
                }, "Runtime shutdown"));
 
@@ -106,6 +106,7 @@ public class Service {
                logger.log(Logger.Level.DEBUG, "Argeo Init stopped with PID " + pid);
        }
 
+       /** The root runtime context in this JVM. */
        public static RuntimeContext getRuntimeContext() {
                return runtimeContext;
        }