Section 3.2 Stopping Jetty 6

Apart from stopping Jetty with a cntrl-c in the same terminal window where you started it, you can start Jetty so that it listens on a local port for stop commands:

java -DSTOP.PORT=8079 -DSTOP.KEY=secret -jar start.jar

The server can then be stopped using a different terminal window on the same machine:

java -DSTOP.PORT=8079 -DSTOP.KEY=secret -jar start.jar --stop

If the STOP.KEY property is ommitted from the start command, then a random key is printed on the standard out. If the STOP.PORT is set to 0, a random available port is assigned and printed on the standard out.


  • Currently 3.02/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
  Flag Inappropriate Content 0 comments