removed gosh:shutdown command. stop 0 works fine.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@944169 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/gogo/shell/src/main/java/org/apache/felix/gogo/shell/Shell.java b/gogo/shell/src/main/java/org/apache/felix/gogo/shell/Shell.java
index e7e3d5d..95c7c0b 100644
--- a/gogo/shell/src/main/java/org/apache/felix/gogo/shell/Shell.java
+++ b/gogo/shell/src/main/java/org/apache/felix/gogo/shell/Shell.java
@@ -38,7 +38,7 @@
public class Shell
{
- static final String[] functions = { "gosh", "sh", "shutdown", "source", "telnetd" };
+ static final String[] functions = { "gosh", "sh", "source", "telnetd" };
private final static URI CWD = new File(".").toURI();
@@ -167,6 +167,7 @@
if (login && !opt.isSet("noshutdown"))
{
+ System.out.println("gosh: stopping framework");
shutdown();
}
@@ -178,7 +179,7 @@
return gosh(session, argv);
}
- public void shutdown() throws BundleException
+ private void shutdown() throws BundleException
{
context.getBundle(0).stop();
}