Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Commit

Permalink
Unset JAVACMD by default
Browse files Browse the repository at this point in the history
In most cases, this will probably work out, but it will need some testing.

JRuby and `logstash.lib.sh` both check first for the presence of `JAVACMD`. If that isn't found, it tries `$JAVA_HOME/bin/java`. If that isn't found, it tries `java` in the system $PATH.

The previous behavior was to manually assign `JAVACMD=/usr/bin/java`.  This will still work for most users.  Special cases will still need manual configuration, but this will _probably_ work better for most cases in the long run.

Fixes elastic#6919
  • Loading branch information
untergeek authored and suyograo committed Apr 20, 2017
1 parent 4636dd8 commit ab6864d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/startup.options
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
################################################################################

# Override Java location
JAVACMD=/usr/bin/java
#JAVACMD=/usr/bin/java

# Set a home directory
LS_HOME=/usr/share/logstash
Expand Down

0 comments on commit ab6864d

Please sign in to comment.