Environment configuration
The env.conf configuration file contains system level configuration. These are mostly properties required to start Java itself.
JAVA_HOME
As first priority, nevisLogRend uses the Java installation defined in the file env.conf using the configuration property JAVA_HOME
. If the JAVA_HOME
property is not defined in env.conf, the Java version as defined in the PATH
environment variable is used.
To define the usage of a specific Java installation, we recommend setting the configuration property JAVA_HOME
in the env.conf file:
JAVA_HOME=/etc/alternatives/jre_1.8.0
JAVA_OPTS
Java system properties can be passed to nevisLogRend using the JAVA_OPTS property in the env.conf.
The JAVA_OPTS
environment variable can be an expression that will be replaced.
JAVA_OPTS=(
'-server'
'-Dfile.encoding=${exec:echo UTF-8}'
)
JAVA_OPTS=(
"-server"
"-Dfile.encoding=\${exec:echo UTF-8}"
)
JAVA_OPTS="-server \
-Dfile.encoding=\${exec:echo UTF-8}"
Important: If you use double quotes the $
must be escaped.
For more on expressions see logrend.properties expression.