Server shutdown: Kill only terminates Equinox launcher, not spawned JVM processes [message #1730898] |
Fri, 29 April 2016 11:35  |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03391 seconds