diff options
Diffstat (limited to 'jetty-server/src/main/java/org/eclipse/jetty/server/ShutdownMonitor.java')
-rw-r--r-- | jetty-server/src/main/java/org/eclipse/jetty/server/ShutdownMonitor.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/ShutdownMonitor.java b/jetty-server/src/main/java/org/eclipse/jetty/server/ShutdownMonitor.java index 198e5c4c25..20fc7db1ea 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/ShutdownMonitor.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/ShutdownMonitor.java @@ -345,14 +345,12 @@ public class ShutdownMonitor */ private ShutdownMonitor() { - Properties props = System.getProperties(); - - this.DEBUG = props.containsKey("DEBUG"); + this.DEBUG = System.getProperty("DEBUG") != null; // Use values passed thru via /jetty-start/ - this.host = props.getProperty("STOP.HOST","127.0.0.1"); - this.port = Integer.parseInt(props.getProperty("STOP.PORT","-1")); - this.key = props.getProperty("STOP.KEY",null); + this.host = System.getProperty("STOP.HOST","127.0.0.1"); + this.port = Integer.parseInt(System.getProperty("STOP.PORT","-1")); + this.key = System.getProperty("STOP.KEY",null); this.exitVm = true; } |