When running jetty project under IntelliJ I have no problem to read environment variable I set to /etc/environment using the System.getenv("var1") api.
When I deploy the war to Ubuntu server that start Jetty at boot, I get null when calling System.getenv("var1")
When I run a simple console application on the server under my user (suder user) I get the environment variable currently.
What I need to do in order to make the environment variables in /etc/environment visible to the war when it start automatically not under a user session?