How do I run Equinox as a daemon? [message #97223] |
Wed, 12 September 2007 18:22 |
Eclipse User |
|
|
|
Originally posted by: twilliams.xanboo.com
Hi,
I notice that there is a similar post to this previously but it didn't
appear to get resolved. I'm using Equniox on an embedded platform running a
Linux variant, I'm using CVM as the JVM If I start equinox from an SSH
session with the -console option, it comes up and runs until I stop the SSH
session that I'm accessing the equinox console from. I've tried starting it
as a daemon but it always "dies" within a minute of starting. The only
thing that appears to keep it alive is if the console session is present.
Any advice on how to get it to run unattended would be appreciated. Just
FYI the command line I'm using to start equinox is as follows:
> cvm -Xmx64M -Xbootclasspath.... -cp .....equinox.jar
org.eclipse.core.runtime.adaptor.EclipseStarter -noExit -console
|
|
|
Re: How do I run Equinox as a daemon? [message #97237 is a reply to message #97223] |
Wed, 12 September 2007 18:47 |
Eclipse User |
|
|
|
Originally posted by: kitplummer.gmail.com
Have you thought about trying it with Java Service Wrapper?
http://wrapper.tanukisoftware.org/doc/english/introduction.h tml
On 9/12/07 11:22 AM, in article fc9c3l$aaj$1@build.eclipse.org, "Tim
Williams" <twilliams@xanboo.com> wrote:
> Hi,
>
> I notice that there is a similar post to this previously but it didn't
> appear to get resolved. I'm using Equniox on an embedded platform running a
> Linux variant, I'm using CVM as the JVM If I start equinox from an SSH
> session with the -console option, it comes up and runs until I stop the SSH
> session that I'm accessing the equinox console from. I've tried starting it
> as a daemon but it always "dies" within a minute of starting. The only
> thing that appears to keep it alive is if the console session is present.
> Any advice on how to get it to run unattended would be appreciated. Just
> FYI the command line I'm using to start equinox is as follows:
>
>> cvm -Xmx64M -Xbootclasspath.... -cp .....equinox.jar
> org.eclipse.core.runtime.adaptor.EclipseStarter -noExit -console
>
>
>
|
|
|
Re: How do I run Equinox as a daemon? [message #97252 is a reply to message #97237] |
Wed, 12 September 2007 18:57 |
Eclipse User |
|
|
|
Originally posted by: twilliams.xanboo.com
The wrapper looks interesting but I was assuming that I'm just missing
something basic and that there is an "easy" way to get equinox to run
unattended by a simple change to the script, am I wrong?
"Kit Plummer" <kitplummer@gmail.com> wrote in message
news:C30D825B.6AA%kitplummer@gmail.com...
> Have you thought about trying it with Java Service Wrapper?
>
> http://wrapper.tanukisoftware.org/doc/english/introduction.h tml
>
>
> On 9/12/07 11:22 AM, in article fc9c3l$aaj$1@build.eclipse.org, "Tim
> Williams" <twilliams@xanboo.com> wrote:
>
> > Hi,
> >
> > I notice that there is a similar post to this previously but it didn't
> > appear to get resolved. I'm using Equniox on an embedded platform
running a
> > Linux variant, I'm using CVM as the JVM If I start equinox from an SSH
> > session with the -console option, it comes up and runs until I stop the
SSH
> > session that I'm accessing the equinox console from. I've tried
starting it
> > as a daemon but it always "dies" within a minute of starting. The only
> > thing that appears to keep it alive is if the console session is
present.
> > Any advice on how to get it to run unattended would be appreciated.
Just
> > FYI the command line I'm using to start equinox is as follows:
> >
> >> cvm -Xmx64M -Xbootclasspath.... -cp .....equinox.jar
> > org.eclipse.core.runtime.adaptor.EclipseStarter -noExit -console
> >
> >
> >
>
>
|
|
|
Re: How do I run Equinox as a daemon? [message #97367 is a reply to message #97252] |
Thu, 13 September 2007 18:48 |
Eclipse User |
|
|
|
Originally posted by: twilliams.xanboo.com
I gave the wrapper a try but it doesn't seem to help. The problem is that
equinox exits with code 0 after a short period of time, even if I have
bundles running with non-daemon threads and various socket connections etc.
One interesting thing is that if I run with -console PPPP it doesn't exit.
Something about having the equinox console telnet server active keeps it
from exiting. Its not really acceptable for me to run the final solution
with the telnet port open and exposed but I wonder does the fact that that
keeps it from exiting suggest to anyone what might be going wrong?
Thanks for any help,
Tim.
"Tim Williams" <twilliams@xanboo.com> wrote in message
news:fc9cr8$d8d$1@build.eclipse.org...
> The wrapper looks interesting but I was assuming that I'm just missing
> something basic and that there is an "easy" way to get equinox to run
> unattended by a simple change to the script, am I wrong?
>
>
> "Kit Plummer" <kitplummer@gmail.com> wrote in message
> news:C30D825B.6AA%kitplummer@gmail.com...
> > Have you thought about trying it with Java Service Wrapper?
> >
> > http://wrapper.tanukisoftware.org/doc/english/introduction.h tml
> >
> >
> > On 9/12/07 11:22 AM, in article fc9c3l$aaj$1@build.eclipse.org, "Tim
> > Williams" <twilliams@xanboo.com> wrote:
> >
> > > Hi,
> > >
> > > I notice that there is a similar post to this previously but it didn't
> > > appear to get resolved. I'm using Equniox on an embedded platform
> running a
> > > Linux variant, I'm using CVM as the JVM If I start equinox from an SSH
> > > session with the -console option, it comes up and runs until I stop
the
> SSH
> > > session that I'm accessing the equinox console from. I've tried
> starting it
> > > as a daemon but it always "dies" within a minute of starting. The
only
> > > thing that appears to keep it alive is if the console session is
> present.
> > > Any advice on how to get it to run unattended would be appreciated.
> Just
> > > FYI the command line I'm using to start equinox is as follows:
> > >
> > >> cvm -Xmx64M -Xbootclasspath.... -cp .....equinox.jar
> > > org.eclipse.core.runtime.adaptor.EclipseStarter -noExit -console
> > >
> > >
> > >
> >
> >
>
>
|
|
|
|
Re: How do I run Equinox as a daemon? [message #97439 is a reply to message #97382] |
Fri, 14 September 2007 14:25 |
Eclipse User |
|
|
|
Originally posted by: twilliams.xanboo.com
Thanks for the suggestion, however unfortunately that didn't seem to help.
I had been using the -noExit option on the command line also with no luck.
I've noticed two key things:
(1) When I run equinox on the same platform but using j9 as the JVM
the -noExit does work
(2) When I run using CVM -noExit doesn't work but I can get equinox to
remain running by using -console 1234
So, it appears that the problem has at least something to do with using CVM
as the JVM and also that something about having a telnet console server
active causes CVM to keep equinox running. I'm wondering if anyone can use
that information to suggest something that I could do from within a bundle
that might keep everything running -- I'd prefer not to have a telnet
console active if I can avoid it....
Any help/thoughts would be much appreciated,
Tim.
"Chris Aniszczyk" <zx@us.ibm.com> wrote in message
news:fcc1he$vf1$1@build.eclipse.org...
> Try passing -Dosgi.noShutdown=true
>
> Cheers,
>
> ~ Chris
|
|
|
|
Re: How do I run Equinox as a daemon? [message #97543 is a reply to message #97518] |
Mon, 17 September 2007 22:16 |
Eclipse User |
|
|
|
Originally posted by: twilliams.xanboo.com
Maybe we need to file a formal bug report through Bugzilla for this. Would
you like to do it or shall I? Your steps to re-create the problem look like
the best description of the problem.
I haven't been able to find any way around this except that on the platform
I am running on starting equinox with a telnet console session (-console
1234) does at least keep OSGi running after I log off of the machine it is
running on. I have been using that solution in order to test stand-alone
operation of my application for now.
"Stephan Sigrist" <stephan.sigrist@diligent-it.com> wrote in message
news:1925077471.14291190012439723.JavaMail.root@cp9.dzone.com...
> Hi Tim
>
> I don't think is has anything to do with CVM. I have the same problem (or
misunderstanding?) on Linux and XP with Sun JRE 1.5. I can reproduce it
inside Eclipse with the following steps (Eclipse 3.2.1 and 3.3.0):
> <ul><li>create a new Hello OSGI plugin project</li>
> <li>create a new Equinox launch configuration</li>
> <li>deselect all plugins except the one created above</li>
> <li>run with -console => works as expected</li>
> <li>run without -console => it terminates immediately</li>
> </ul>
>
> I also tried different combinations of -noExit and -Dosgi.noShutdown=true
but it didn't help. Starting a non-deamon thread in the plugin did also not
prevent termination. What option needs to be set to keep it running?
>
> Cheers, Stephan
|
|
|
|
Re: How do I run Equinox as a daemon? [message #97938 is a reply to message #97223] |
Fri, 21 September 2007 05:11 |
Eclipse User |
|
|
|
Originally posted by: irbull.cs.uvic.ca
Hi Tim,
I seem to be having the same problem as you. I found running my OSGi
server inside a "screen" console seems to fix this. Screen basically
keeps your shell alive even after you log out. Another advantage of
screen is that you can re-connect to it when you log back onto the
machine giving you access to the OSGi console again.
cheers,
ian
Tim Williams wrote:
> Hi,
>
> I notice that there is a similar post to this previously but it didn't
> appear to get resolved. I'm using Equniox on an embedded platform running a
> Linux variant, I'm using CVM as the JVM If I start equinox from an SSH
> session with the -console option, it comes up and runs until I stop the SSH
> session that I'm accessing the equinox console from. I've tried starting it
> as a daemon but it always "dies" within a minute of starting. The only
> thing that appears to keep it alive is if the console session is present.
> Any advice on how to get it to run unattended would be appreciated. Just
> FYI the command line I'm using to start equinox is as follows:
>
>> cvm -Xmx64M -Xbootclasspath.... -cp .....equinox.jar
> org.eclipse.core.runtime.adaptor.EclipseStarter -noExit -console
>
>
>
|
|
|
Re: How do I run Equinox as a daemon? [message #98016 is a reply to message #97518] |
Sun, 23 September 2007 16:03 |
Eclipse User |
|
|
|
Originally posted by: martin.tomcat.org
Hi,
I also have the need to run Equinox as a daemon so I have read this thread
with intrest.
Just wanted to add one observation to the steps described:
If the 'Clear the configiration area before launching' is checked the
process will not terminate when run without the -console option
BR
M
"Stephan Sigrist" <stephan.sigrist@diligent-it.com> skrev i meddelandet
news:1925077471.14291190012439723.JavaMail.root@cp9.dzone.com...
> Hi Tim
>
> I don't think is has anything to do with CVM. I have the same problem (or
> misunderstanding?) on Linux and XP with Sun JRE 1.5. I can reproduce it
> inside Eclipse with the following steps (Eclipse 3.2.1 and 3.3.0):
> <ul><li>create a new Hello OSGI plugin project</li>
> <li>create a new Equinox launch configuration</li>
> <li>deselect all plugins except the one created above</li>
> <li>run with -console => works as expected</li>
> <li>run without -console => it terminates immediately</li>
> </ul>
>
> I also tried different combinations of -noExit and -Dosgi.noShutdown=true
> but it didn't help. Starting a non-deamon thread in the plugin did also
> not prevent termination. What option needs to be set to keep it running?
>
> Cheers, Stephan
|
|
|
Powered by
FUDForum. Page generated in 0.03569 seconds