I need to set a system wide environment variable on Raspbian jessie. System wide means in this case not only for logged in users but also for all services (in detail for lirc and irexec service).
I already tried the following ways:
Adding an entry to /env/environment
: works well for logged in users but not for irexec.
I am getting the same result when creating a file with an export command in /etc/profile.d/test.sh
.
What is the correct way to set an environment variables for all services and logged-in users?