I am using Jetty 7.4 for one of my projects. I need to configure it so that it can automatically start / stop whenever the server starts or goes down. In addition, I should be able to start / stop the server on demand. I use the start / stop script that comes with the berth (bin / jetty.sh). The server starts just fine. However, when it comes to stopping the server, I run into some problems.
Jetty expects you to start the server with the command line parameter "--exec", and this parameter spawns another JVM instance. Now two processes are working for the berth. When you try to stop the berth server using a script, the first process will complete successfully. However, I can still see the generated process.
I searched the Internet and people asked this question in several places, but I could not find a solution to this problem. Any ideas?
thank,
NG
source
share