>>>>> "Petter" == Petter Reinholdtsen <p...@hungry.com> writes:

    Petter> In Debian Edu, /etc/environment is used to set the required
    Petter> HTTP proxy globally.  It would be nice if it actually took
    Petter> effect for all services.  :)

    Petter> As far as I know, there is no other alternative for
    Petter> /etc/environment for variables that should be set everywhere
    Petter> for every user and process on the machine. :) -- Happy
    Petter> hacking Petter Reinholdtsen

I'd argue that this should be set in the systemd unit for the service
for a service that does not traditionally use sessions.
Also, I believe there is a way to get systemd to inject environment
variables into init's environment, so they are inherited until the
environment is cleared.
I'd generally agree that applications should either preserve their
environment, or use pam_env.

Reply via email to