Changeset 6545b53f


Ignore:
Timestamp:
04/30/2020 09:00:35 PM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 12.2, gimp3, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/for-12.3, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/spidermonkey128, xry111/test-20220226, xry111/xf86-video-removal
Children:
f37e8f37
Parents:
93817f4
Message:

Document options to prevent elogind to kill user processes when a user logs out.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23056 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/elogind.xml

    r93817f4 r6545b53f  
    205205
    206206    <para>
     207      <option>-Ddefault-kill-user-processes=false</option>: Configure whether
     208      the processes of a user should be killed when the user logs out. The
     209      default is <emphasis>true</emphasis>, but this defeats the traditional
     210      use of <command>screen</command> or <command>tmux</command>. This can
     211      also be changed in the configuration file (see below).
     212    </para>
     213
     214    <para>
    207215      <command>ln -s ...</command>: These commands install symlinks so that
    208216      software packages find systemd compatible library and headers.
     
    214222  <title>Configuring elogind</title>
    215223
    216     <para>
    217       Each user will need to register a user session using
    218       <application>Linux-PAM</application> at login. The
    219       <filename>/etc/pam.d/system-session</filename> file needs to
    220       be modified and a new file needs to be created in order for
    221       <command>elogind</command> to work correctly. Run the following
    222       commands as the <systemitem class="username">root</systemitem> user:
    223     </para>
     224    <sect3 id="elogind-config">
     225      <title>Config File</title>
     226      <para>
     227        <filename>/etc/elogind/logind.conf</filename>
     228      </para>
     229
     230      <indexterm zone="elogind elogind-config">
     231        <primary
     232        sortas="e-etc-elogind-logind.conf">/etc/elogind/logind.conf</primary>
     233      </indexterm>
     234    </sect3>
     235
     236    <sect3><title>Configuration Information</title>
     237
     238      <para>
     239        The installed file <filename>/etc/elogind/logind.conf</filename>
     240        contains all the possible options with their defaults, commented
     241        out. You may wish to disable killing user processes when the user logs
     242        out, by running, as the <systemitem class="username">root</systemitem>
     243        user:
     244      </para>
     245
     246<screen role="root"><userinput>sed -e '/\[Login\]/a KillUserProcesses=no' \
     247    -i /etc/elogind/logind.conf</userinput></screen>
     248
     249      <para>
     250        Each user will need to register a user session using
     251        <application>Linux-PAM</application> at login. The
     252        <filename>/etc/pam.d/system-session</filename> file needs to
     253        be modified and a new file needs to be created in order for
     254        <command>elogind</command> to work correctly. Run the following
     255        commands as the <systemitem class="username">root</systemitem> user:
     256      </para>
    224257
    225258<screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/system-session &lt;&lt; "EOF" &amp;&amp;
     
    250283EOF</userinput></screen>
    251284
     285    </sect3>
    252286  </sect2>
    253287
  • introduction/welcome/changelog.xml

    r93817f4 r6545b53f  
    4646      <itemizedlist>
    4747        <listitem>
     48          <para>[pierre] - Document options to prevent elogind to kill
     49          all user processes when the user logs out. This recovers the
     50          traditional behavior of commands like nohup or screen.</para>
     51        </listitem>
     52        <listitem>
    4853          <para>[renodr] - Update to cryptsetup-2.3.2. Fixes
    4954          <ulink url="&blfs-ticket-root;13482">#13482</ulink>.</para>
Note: See TracChangeset for help on using the changeset viewer.