summaryrefslogtreecommitdiff
path: root/man/systemd.exec.xml
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-09-12 09:29:01 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-09-12 09:29:01 -0400
commitf4ae69117ba47e75ff89c7d847e180af9af7436a (patch)
tree23a5e1875b85d9a226382106e1b8f6ce52dec02b /man/systemd.exec.xml
parent39f0570d6ea01476dd82bbcae60f51f97f614cec (diff)
man: Add a note about what environment variables are available by default
Diffstat (limited to 'man/systemd.exec.xml')
-rw-r--r--man/systemd.exec.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml
index 2c673a2a96..ff8b812ef4 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.</para>
+
+ <para>Processes started by the system systemd instance
+ are executed in a clean environment in which only the
+ <varname>$PATH</varname> and <varname>$LANG</varname>
+ variables are set by default. In order to add
+ additional variables, see the
+ <varname>Environment=</varname> and
+ <varname>EnvironmentFile=</varname> options below. To
+ specify variables globally, see
+ <varname>DefaultEnvironment=</varname> in
+ <citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
+ or the kernel option
+ <varname>systemd.setenv=</varname> in
+ <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>. Processes
+ started by the user systemd instances inherit all
+ environment variables from the user systemd instance,
+ and have <varname>$HOME</varname>,
+ <varname>$USER</varname>,
+ <varname>$XDG_RUNTIME_DIR</varname> defined, among
+ others. In addition, <varname>$MANAGERPID</varname>
+ contains the PID of the user systemd instance.</para>
</refsect1>
<refsect1>