Try --stop-port=8081 --stop-key=foo

--
Joakim Erdfelt <[email protected]>
webtide.com <http://www.webtide.com/> - intalio.com/jetty
Expert advice, services and support from from the Jetty & CometD experts
eclipse.org/jetty - cometd.org


On Wed, Oct 23, 2013 at 9:18 AM, bt <[email protected]> wrote:

> Hi,
>
> I'm trying to shut down a running jetty instance, referring to:
>
>     http://www.eclipse.org/jetty/documentation/current/jetty-runner.html
>
> I've started jetty using:
>
>     java -jar jetty-runner-7.6.9.v20130131.jar --config ./jetty.xml
> ./staging --stop-port 8081 --stop-key foo
>
> Now trying to stop it:
>
>     java -jar start.jar --stop-port 8081 --stop-key foo --stop
>
> and get:
>
>     STOP.PORT system property must be specified
>     STOP.KEY system property must be specified
>     Using empty key
>     java.lang.IllegalArgumentException: port out of range:-1
>       at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:123)
>       at java.net.InetSocketAddress.<init>(InetSocketAddress.java:165)
>       at java.net.Socket.<init>(Socket.java:216)
>       at org.eclipse.jetty.start.Main.stop(Main.java:1061)
>       at org.eclipse.jetty.start.Main.processCommandLine(Main.java:189)
>       at org.eclipse.jetty.start.Main.main(Main.java:94)
>
> It seems like start.jar is not reading the stop port/key from the command
> line parameters. I see the doc I'm referring to is for jetty 9, but the
> same parameters are stated as available when I look at my particular jar
> version options:
>
>  --stop-port n   - port to listen for stop command
>  --stop-key n   - security string for stop command (required if
> --stop-port is present)
>
> What have I missed here?
>
> Thank you
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to