remove the jline flag and automatically detect it

This commit is contained in:
kimchy 2011-07-15 10:00:23 +03:00
parent f6beebf34c
commit 845104dabc
3 changed files with 5 additions and 2 deletions

Binary file not shown.

View File

@ -17,8 +17,6 @@ JAVA_OPTS="$JAVA_OPTS -Xmx${ES_MAX_MEM}"
# reduce the per-thread stack size
JAVA_OPTS="$JAVA_OPTS -Xss128k"
JAVA_OPTS="$JAVA_OPTS -Djline.enabled=true"
# Enable aggressive optimizations in the JVM
# - Disabled by default as it might cause the JVM to crash
# JAVA_OPTS="$JAVA_OPTS -XX:+AggressiveOpts"

View File

@ -142,6 +142,11 @@ public class Bootstrap {
Bootstrap bootstrap = new Bootstrap();
String pidFile = System.getProperty("es-pidfile");
// enable jline by default when running form "main"
if (System.getProperty("jline.enabled") == null) {
System.setProperty("jline.enabled", "true");
}
boolean foreground = System.getProperty("es-foreground") != null;
// handle the wrapper system property, if its a service, don't run as a service
if (System.getProperty("wrapper.service", "XXX").equalsIgnoreCase("true")) {