[systemd-devel] Environment File Question

Andrei Borzenkov arvidjaar at gmail.com
Tue Dec 19 03:45:07 UTC 2017


19.12.2017 02:22, Boyce, Kevin P [US] (AS) пишет:
> Good Day List,
> 
> This may be a noob question but I'm trying to understand how systemd works with environment variables for system services in one place.  Reading various sites and systemd documentation only seems to be confusing me at this point.
> 
> When I set in /etc/systemd/system.conf DefaultEnvironment="VAR1=Test" 'VAR2=TEST 2', my service reads the variables correctly, but why are these not inherited by the user when they login?

/bin/login will initialize environment unless called with "-p" option.



More information about the systemd-devel mailing list