# HG changeset patch # User Elliott Baron # Date 1507054818 14400 # Node ID abcc0226b29324bc3fdef93feada0f9e6b13b130 # Parent e159ff4b557f2242f9a9929fabfe81c5704b60e1 Allow additional Java options using environment variable Reviewed-by: jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-September/025243.html Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-October/025244.html diff -r e159ff4b557f -r abcc0226b293 README.md --- a/README.md Tue Oct 03 14:54:00 2017 +0200 +++ b/README.md Tue Oct 03 14:20:18 2017 -0400 @@ -29,6 +29,7 @@ ``` This will run the Web Gateway with default configuration, listening on http://127.0.0.1:30000 +Additional Java options can be passed to the Java command that launches the Web Gateway using the `THERMOSTAT_GATEWAY_EXT_JAVA_OPTS` environment variable. ## How to Stop diff -r e159ff4b557f -r abcc0226b293 distribution/src/bin/thermostat-web-gateway.sh --- a/distribution/src/bin/thermostat-web-gateway.sh Tue Oct 03 14:54:00 2017 +0200 +++ b/distribution/src/bin/thermostat-web-gateway.sh Tue Oct 03 14:20:18 2017 -0400 @@ -79,4 +79,5 @@ THERMOSTAT_GATEWAY_LIBS=${THERMOSTAT_GATEWAY_HOME}/libs export THERMOSTAT_GATEWAY_HOME -exec java -cp "${THERMOSTAT_GATEWAY_LIBS}/*" "${LOGGING_ARGS[@]}" com.redhat.thermostat.gateway.server.Start +exec java ${THERMOSTAT_GATEWAY_EXT_JAVA_OPTS} -cp "${THERMOSTAT_GATEWAY_LIBS}/*" \ + "${LOGGING_ARGS[@]}" com.redhat.thermostat.gateway.server.Start