[systemd-devel] Set environment variable system-wide

Kay Sievers kay at vrfy.org
Mon Aug 6 14:09:24 PDT 2012


On Mon, Aug 6, 2012 at 10:49 PM, Daniel Drake <dsd at laptop.org> wrote:
> Hi,
>
> I thought I read somewhere that systemd offers a mechanism to set an
> environment variable system-wide - i.e. the variable assignment will
> be present in all the processes started by systemd.
>
> But I can't find where I read this, or how to use it.
>
> Does this functionality exist or am I getting confused with something else?

systemctl set-environment ... ?

But it's in almost all use cases wrong to use anything like that isn't
broken unix legacy that expects it that way.

Kay


More information about the systemd-devel mailing list