Closed krsna1729 closed 4 years ago
I have not had luck getting this to work, even just manually setting the values with systemctl set-environment HTTP_PROXY="..." and doing a systemctl daemon-reload. Have you ever done this for system level environment variables?
systemctl daemon-reexec
might be needed.
There is a way to use systemd level environment such that all services can inherit the environment, in this case the proxy env variables.
https://github.com/clearlinux/cloud-native-setup/blob/603c42703fe33bb6f30ec7d070f6eba6a71c5dd5/clr-k8s-examples/setup_system.sh#L158-L168
https://www.freedesktop.org/software/systemd/man/systemd-system.conf.html