On Fri, Jul 26, 2013 at 12:38 PM, Reindl Harald <[email protected]> wrote: > > > Am 26.07.2013 12:03, schrieb Kay Sievers: >>>> man/systemd.exec.xml | 7 +++++++ >>>> 1 file changed, 7 insertions(+) >>>> >>>> diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml >>>> index c0e1d86..b78f255 100644 >>>> --- a/man/systemd.exec.xml >>>> +++ b/man/systemd.exec.xml >>>> @@ -77,6 +77,13 @@ >>>> configuration options are configured in the [Service], >>>> [Socket], [Mount], or [Swap] sections, depending on the >>>> unit >>>> type.</para> >>>> + >>>> + <para>All processes are executed in a clean environment in >>>> + which only the TERM, PATH, USER, and HOME variables are >>>> set >>>> + by default. >>> >>> They are just preserved, passed-along, not exported or set by default, >>> isn't it? >> >> Seems for the system services, only PATH= and the locale are usually set: >> >> $ sudo cat /proc/$(pidof systemd-logind)/environ >> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/binLANG=en_US.UTF-8LC_TIME=de_DE.UTF-8LC_PAPER=de_DE.UTF-8LC_MEASUREMENT=de_DE.UTF-8 > > on Fedora 18 (systemd-201-2.fc18.7.x86_64) and Fedora 17 > (systemd-44-24.fc17.x86_64) > i see more like BOOT_IMAGE which also appears all in phpinfo() > > cat /proc/$(pidof systemd-logind)/environ > BOOT_IMAGE=/vmlinuz-3.9.11-200.fc18.x86_64divider=10biosdevname=0LANG=de_DE.UTF-8PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin > > cat /proc/$(pidof systemd-logind)/environ > SYSFONT=latarcyrheb-sun16PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/binbiosdevname=0LANG=de_DE.UTF-8divider=20KEYTABLE=de-latin1-nodeadkeysBOOT_IMAGE=/vmlinuz-3.9.10-100.fc17.x86_64
What's currently done for environment variables and the rules how they are passed-on is not obvious and quite a mess that needs fixing. I'll look into it now ... Kay _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
