[chiark.chat] Re: RFH: sysvinit etc. in Debian

Andreas Messer andi at bastelmap.de
Thu Nov 8 22:01:17 GMT 2018

On Thu, Nov 08, 2018 at 08:01:12PM +0000, Mark Hindley wrote:
> On Thu, Nov 08, 2018 at 08:37:15PM +0100, Lorenz wrote:
> >    Hi Ian, Mark
> >    I'm switching to your packaging and i've spotted few issues, althought
> >    i'm a bit in a rush so i may be wrong (forgive me in that case)
> >    * you are starting elogind twice each boot, first with dbus and than
> >    with a sysv script, you're not catching this with 'log_end_msg' because
> >    the second instance of       elogind print a message but exit 0. This
> >    is not a problem for sysv but it is with runit, it will keep restarting
> >    elogind forever (twice per second)
> >        For me, having a 'Exec=/sbin/false' in
> >    /usr/share/dbus-1/system-service/org.freedesktop.login1.service is
> >    working.
> Yes, I have just noticed that this afternoon too.
> Andreas, was there a reason you wrote an init script rather than relying on dbus
> activation?

Honestly, I didn't even know that there was dbus activation for 
elogind. However, that shouldn't lead to starting the daemon twice. I
mean, dbus should only start the daemon if the dbus service is not yet
registered. And when started through init scripts, it would expect it to 
be already registered.

I have not much insight into elogind, but one thing to note maybe is, that
elogind (as systemd-elogind) registers itself as a cgroup controller. This
is, since it uses cgroups to determine the session a process belongs to.
Not sure how this aligns with dbus activation.

btw, i'm now registered with the ml.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20181108/1d43d975/attachment.sig>

More information about the Debian-init-diversity mailing list