Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Server shutdown: Kill only terminates Equinox launcher, not spawned JVM processes
Server shutdown: Kill only terminates Equinox launcher, not spawned JVM processes [message #1730898] Fri, 29 April 2016 15:35 Go to next message
Andreas Sewe is currently offline Andreas SeweFriend
Messages: 111
Registered: June 2013
Senior Member
Hi,

I have an Equinox-based server set up as follows:

-Declipse.ignoreApp=true
-Dosgi.noShutdown=true

There exists on autostarted plugin, whose Activator sets up an Apache Camel context, which in turn uses Jetty to serve HTTP request. This architecture works fine so far.

Alas, shutting down the process properly is impossible. When I launch my server executable unter Linux, it in turn spawns a JVM:

server
\--- java -jar ...launcher...jar ...

Due to this structure, I have only (through the shell's $! variable) access to the server binaries process ID.

What am I doing wrong?

But doing a kill $PID_OF_SERVER does not shutdown the JVM; it only terminates the server launcher.
Re: Server shutdown: Kill only terminates Equinox launcher, not spawned JVM processes [message #1730900 is a reply to message #1730898] Fri, 29 April 2016 15:36 Go to previous message
Andreas Sewe is currently offline Andreas SeweFriend
Messages: 111
Registered: June 2013
Senior Member
Quote:
What am I doing wrong?

But doing a kill $PID_OF_SERVER does not shutdown the JVM; it only terminates the server launcher.

The last two sentences should be swapped, of course. Wink
Previous Topic:"Framework stop" thread
Next Topic:e4 selfupdate
Goto Forum:
  


Current Time: Fri Sep 21 17:15:57 GMT 2018

Powered by FUDForum. Page generated in 1.04645 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top