Skip to main content



      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 11:35 Go to next message
Eclipse UserFriend
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 11:36 Go to previous message
Eclipse UserFriend
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: Sat Apr 19 16:47:08 EDT 2025

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

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

Back to the top