...
| Code Block |
|---|
java -DSTOP.PORT=8079 -DSTOP.KEY=mysecret -jar start.jar |
WARNING: In some operating systems your STOP.KEY may be visible in the process list, allowing other users to connect to the stop port and initiate the stop command. Please consider this before using the STOP.PORT and STOP.KEY in start/stop scripts, for example init.d scripts on linux distributions.
As a further security measure, you can omit the STOP.KEY property on startup, in which case Jetty will generate and print on stdout a random key:
| Code Block |
|---|
> java -DSTOP.PORT=8079 -jar start.jar -DSTOP.KEY=3xspihnnsse8 |
This key should then be supplied on the termination request:
...