profile.d
, bash_rc
etc won't be read. In order for your war
to get the environment variable follow the below steps. Say the variable is APP_PROPERTIES
and the path is /opt/config/app.properties
.# Add the following line in /etc/default/wildfly.conf
APP_PROPERTIES="/opt/config/app.properties"
# export the variable in /etc/init.d/wildfly
export APP_PROPERTIES