Skip to content

Commit

Permalink
man: improve ManagerEnvironment documentation
Browse files Browse the repository at this point in the history
- Improve wording for explanation when these variables are inherited

- Clarify that these variables are not placed in the process environment block,
  so /proc/PID/environ cannot be used as a debugging tool

(cherry picked from commit 6c1e0823b04525716d9ee0031a2b6735d3f7dfa4)
(cherry picked from commit 5cf0c45f64079430b0b7c12ad323f238386260b0)
(cherry picked from commit 79f335d)
  • Loading branch information
CyberShadow authored and bluca committed Aug 19, 2024
1 parent d9abcf9 commit bb28a6c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions man/systemd-system.conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,12 @@
<term><varname>ManagerEnvironment=</varname></term>

<listitem><para>Takes the same arguments as <varname>DefaultEnvironment=</varname>, see above. Sets
environment variables just for the manager process itself. In contrast to user managers, these variables
are not inherited by processes spawned by the system manager, use <varname>DefaultEnvironment=</varname>
environment variables for the manager process itself. These variables are inherited by processes
spawned by user managers, but not the system manager - use <varname>DefaultEnvironment=</varname>
for that. Note that these variables are merged into the existing environment block. In particular, in
case of the system manager, this includes variables set by the kernel based on the kernel command line.</para>
case of the system manager, this includes variables set by the kernel based on the kernel command line.
As with <varname>DefaultEnvironment=</varname>, this environment block is internal, and changes are not
reflected in the manager's <filename>/proc/PID/environ</filename>.</para>

<para>Setting environment variables for the manager process may be useful to modify its behaviour.
See <ulink url="https://systemd.io/ENVIRONMENT">ENVIRONMENT</ulink> for a descriptions of some
Expand Down

0 comments on commit bb28a6c

Please sign in to comment.