Commit 22b8a867 authored by Nicolas Tachker's avatar Nicolas Tachker
Browse files

JORAM-60: fix: use no interactive mode for gogo and use stop 0 to shutdown felix.

parent aa604c88
......@@ -145,6 +145,7 @@ public class SCAdminOSGi implements SCAdminItf {
argv.add("-D" + Activator.AGENT_SERVER_STORAGE_PROPERTY + "=s" + sid);
argv.add("-XX:+UnlockDiagnosticVMOptions");
argv.add("-XX:+UnsyncloadClass");
argv.add("-Dgosh.args=--nointeractive");// need with gogo
// Main class
argv.add("org.apache.felix.main.Main");
......@@ -181,7 +182,8 @@ public class SCAdminOSGi implements SCAdminItf {
daemon = new TelnetReaderDaemon(socket.getInputStream());
daemon.start();
socket.getOutputStream().write("shutdown\n".getBytes());
// use stop 0 to shutdown ! (available in felix and gogo)
socket.getOutputStream().write("stop 0\n".getBytes());
socket.getOutputStream().flush();
......@@ -214,7 +216,8 @@ public class SCAdminOSGi implements SCAdminItf {
daemon = new TelnetReaderDaemon(socket.getInputStream());
daemon.start();
socket.getOutputStream().write("shutdown\n".getBytes());
// use stop 0 to shutdown ! (available in felix and gogo)
socket.getOutputStream().write("stop 0\n".getBytes());
socket.getOutputStream().flush();
} catch (Throwable exc) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment