]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man/systemd.exec: document behavior of SetLoginEnvironment= when unset
authorMike Yuan <me@yhndnzj.com>
Tue, 10 Oct 2023 10:08:08 +0000 (18:08 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 10 Oct 2023 11:08:32 +0000 (12:08 +0100)
Follow-up for 854eca4a95993bb1bd77a18de39efe1ed1a44bbd

Addresses https://github.com/systemd/systemd/pull/29493#discussion_r1351980046

man/systemd.exec.xml

index e648aeedaa02801746d5e8cce053f45a65aa7b2a..52cce9bc308024e146247f1c411634dd3c799d84 100644 (file)
       <varlistentry>
         <term><varname>SetLoginEnvironment=</varname></term>
 
-        <listitem><para>Takes a boolean parameter. If true, <varname>$HOME</varname>, <varname>$LOGNAME</varname>,
-        and <varname>$SHELL</varname> environment variables will be set for system services even if
-        <varname>User=</varname> is not set, i.e. when the default user <literal>root</literal> is used.
-        If false, the mentioned variables are not set by systemd, no matter whether <varname>User=</varname>
-        is set or not. This option normally has no effect on user services, since these variables are typically
-        inherited from user manager's own environment anyway.</para>
+        <listitem><para>Takes a boolean parameter that controls whether to set <varname>$HOME</varname>,
+        <varname>$LOGNAME</varname>, and <varname>$SHELL</varname> environment variables. If unset, this is
+        controlled by whether <varname>User=</varname> is set. If true, they will always be set for system services,
+        i.e. even when the default user <literal>root</literal> is used. If false, the mentioned variables are not set
+        by systemd, no matter whether <varname>User=</varname> is used or not. This option normally has no effect
+        on user services, since these variables are typically inherited from user manager's own environment anyway.</para>
 
         <xi:include href="version-info.xml" xpointer="v255"/></listitem>
       </varlistentry>