mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
remove the jline flag and automatically detect it
This commit is contained in:
parent
f6beebf34c
commit
845104dabc
Binary file not shown.
@ -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"
|
||||
|
@ -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")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user