7

I am learning Apache Felix to use as my OSGi framework. I want to be able to use the Felix Remote Shell to access my running instance through telnet. The Remote Shell accesses the process through Gogo, as explained on http://felix.apache.org/site/apache-felix-remote-shell.html. When I start Felix with the Gogo shell bundles in the auto-deploy bundles directory, it opens a Felix prompt g! on the Linux console from which I am starting. What I would like to do is have Felix start with the Gogo shell active, but without attaching to my current Linux console and showing the g! prompt, and still allowing me to access the instance using the Remote Shell through telnet. Is this possible? If so, what is the correct way to do it? Would nohup and running in the background suffice? That doesn't seem very clean to me. Thanks for any suggestions!

John Simmons
  • 461
  • 1
  • 5
  • 10

1 Answers1

14

According to a discussion on the mailing list, you should add the -Dgosh.args=--nointeractive JVM argument.

Robert Munteanu
  • 67,031
  • 36
  • 206
  • 278
Richard S. Hall
  • 616
  • 3
  • 6
  • 2
    This worked for me. I don't know why this answer has not been accepted. I can think of one valid reason, but that would be real unfortunate for the family of the OP author. :) – axiopisty Nov 13 '14 at 18:17