title: How can I stop the spawned process in jetty 7 using jetty.sh?
body: <p>I am using Jetty 7.4 for one of my projects. I need to configure it so that it can start/stop automatically whenever the server starts up or goes down. Also, I should be able to start/stop the server on demand. I am using the start/stop script that comes along with jetty(bin/jetty.sh). The server starts just fine. However, when it comes to stopping the server, I am facing some problems. </p>
  
  <p>Jetty expects you to start the server with "--exec" command line parameter and this parameter spawns another JVM instance. Now there are two processes running for jetty. When you try to stop the jetty server using the script the first process dies successfully. However, I can still see the spawned process. </p>
  
  <p>I've searched the web and people have asked this question at multiple places but I could not find a solution to this problem. Any ideas?</p>
  
  <p>thanks,</p>
  
  <p>NG</p>