]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: improve ManagerEnvironment documentation
authorVladimir Panteleev <git@cy.md>
Sat, 27 Jul 2024 11:43:47 +0000 (11:43 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 28 Jul 2024 09:33:17 +0000 (10:33 +0100)
- 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

man/systemd-system.conf.xml

index ae5b61b1493ddfef463b5f6064027aada24ad2c6..39117f6934e56e057c7e50dedef6f28e108abbae 100644 (file)
         <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">Known Environment Variables</ulink> for a