Graylog2 / fpm-recipes

Graylog package build recipes
http://docs.graylog.org/en/latest/pages/installation/operating_system_packages.html
18 stars 19 forks source link

/etc/sysconfig/graylog-web JAVA Parameter in RPMs #44

Closed bernd closed 8 years ago

bernd commented 8 years ago

Using the graylog-web-1.1.6-1.noarch.rpm, maybe earlier versions have this bug also.

Setting the parameter JAVA to something like /opt/java/bin/java in /etc/sysconfig/graylog-web has no effect. The Javaversion to use is detected in /usr/share/graylog-web/bin/graylog-web-interface in the function get_java_cmd. This function only checks for the environment-variable JAVA_HOME.

A workaround for this issue is to add the following line to /etc/sysconfig/graylog-web:

export JAVA_HOME=/opt/java

Moved here from: https://github.com/Graylog2/graylog2-web-interface/issues/1553 by @jgkirschbaum