From: Zbigniew Jędrzejewski-Szmek Date: Thu, 12 Sep 2013 13:29:01 +0000 (-0400) Subject: man: Add a note about what environment variables are available by default X-Git-Tag: v207~13 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=f4ae69117ba47e75ff89c7d847e180af9af7436a;hp=39f0570d6ea01476dd82bbcae60f51f97f614cec man: Add a note about what environment variables are available by default --- diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml index 2c673a2a9..ff8b812ef 100644 --- a/man/systemd.exec.xml +++ b/man/systemd.exec.xml @@ -76,6 +76,27 @@ configuration options are configured in the [Service], [Socket], [Mount], or [Swap] sections, depending on the unit type. + + Processes started by the system systemd instance + are executed in a clean environment in which only the + $PATH and $LANG + variables are set by default. In order to add + additional variables, see the + Environment= and + EnvironmentFile= options below. To + specify variables globally, see + DefaultEnvironment= in + systemd-system.conf5 + or the kernel option + systemd.setenv= in + systemd1. Processes + started by the user systemd instances inherit all + environment variables from the user systemd instance, + and have $HOME, + $USER, + $XDG_RUNTIME_DIR defined, among + others. In addition, $MANAGERPID + contains the PID of the user systemd instance.