Make OSGi init more robust
[lgpl/argeo-commons.git] / org.argeo.init / src / org / argeo / init / Service.java
index aa9494c91591605e41f2061a8864d158cdc48d51..cab85d02ff3e8eefa19317916ebf0de3f286af30 100644 (file)
@@ -40,7 +40,7 @@ public class Service {
                                }
                        } catch (Exception e) {
                                e.printStackTrace();
-                               System.exit(1);
+                               Runtime.getRuntime().halt(1);
                        }
                }, "Runtime shutdown"));