lusis/chef-logstash — pull request #388 by andrewgoktepe (2014-12-31 21:31:35+00:00)
Title: set JAVA_HOME in runit script

The logstash script will use the JAVA_HOME environment variable if it is set. This change exports JAVA_HOME in /etc/sv/logstash_/run so that a particular JVM can be specified under the instance in its attributes.

Without this change, the logstash cookbook on Ubuntu 14.04 with Oracle JDK 1.7 will fail to start the logstash service (using runit) with the following error:

2014-12-31_21:24:12.93170 Error occurred during initialization of VM
2014-12-31_21:24:12.93171 Incompatible minimum and maximum heap sizes specified