Mercurial > hg > thermostat-ng > web-gateway
changeset 269:abcc0226b293
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
author | Elliott Baron <ebaron@redhat.com> |
---|---|
date | Tue, 03 Oct 2017 14:20:18 -0400 |
parents | e159ff4b557f |
children | 025c66961cf9 |
files | README.md distribution/src/bin/thermostat-web-gateway.sh |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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