Changeset 27e5cd4c


Ignore:
Timestamp:
03/12/2022 10:30:51 AM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.2, 11.3, 12.0, 12.1, 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, xry111/llvm18, xry111/soup3, xry111/xf86-video-removal
Children:
9c8fb20a
Parents:
7637013
git-author:
Pierre Labastie <pierre.labastie@…> (03/12/2022 10:04:07 AM)
git-committer:
Pierre Labastie <pierre.labastie@…> (03/12/2022 10:30:51 AM)
Message:

Allow elogind to exit when dbus is closed

As reported in ticket #16177 by Joe Locash, switching from runlevel
3 to 1 and back would render elogind useless: it is still running
but not connected to the bus, because dbus is killed in runlevel 1
and then restarted in runlevel 3. The added "sed" allows elogind to
exit when dbus is killed. This is the normal behavior of daemons
using dbus.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/elogind.xml

    r7637013 r27e5cd4c  
    155155<screen><userinput>sed -i '/Disable polkit/,+8 d' meson.build &amp;&amp;
    156156
     157sed '/request_name/i\
     158r = sd_bus_set_exit_on_disconnect(m->bus, true);\
     159if (r &lt; 0)\
     160    return log_error_errno(r, "Failed to set exit on disconnect: %m");' \
     161    -i src/login/logind.c &amp;&amp;
     162
    157163mkdir build &amp;&amp;
    158164cd    build &amp;&amp;
     
    190196      runtime dependency) but able to use polkit after that package is
    191197      installed.
     198    </para>
     199
     200    <para>
     201      <command>sed ... src/login/logind.c</command>: This change allows the
     202      elogind daemon to exit when it is disconnected from dbus (for example
     203      when dbus is killed).
    192204    </para>
    193205
  • introduction/welcome/changelog.xml

    r7637013 r27e5cd4c  
    4242    </listitem>
    4343    -->
     44    <listitem revision="sysv">
     45      <para>March 12th, 2022</para>
     46      <itemizedlist>
     47        <listitem>
     48          <para>[pierre] - Allow elogind to exit when dbus is closed. Fixes
     49          <ulink url="&blfs-ticket-root;16177">#16177</ulink>.</para>
     50        </listitem>
     51      </itemizedlist>
     52    </listitem>
     53
    4454    <listitem>
    4555      <para>March 11th, 2022</para>
Note: See TracChangeset for help on using the changeset viewer.