all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Andy Wingo <wingo@igalia.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCHES] Update elogind to 219.13
Date: Mon, 07 Mar 2016 13:09:26 +0100	[thread overview]
Message-ID: <87twkitrpl.fsf@gnu.org> (raw)
In-Reply-To: <87si025z39.fsf@igalia.com> (Andy Wingo's message of "Mon, 07 Mar 2016 12:03:54 +0100")

Andy Wingo <wingo@igalia.com> skribis:

> On Mon 07 Mar 2016 11:01, ludo@gnu.org (Ludovic Courtès) writes:
>
>> BTW, a few days ago we were discussing on IRC the fact that elogind
>> would start before dbus-daemon, and thus get respawned a couple of times
>> at system startup, etc.  Yesterday, with commit 956ad60, I changed it to
>> be started through D-Bus activation, so we should be safe now.
>
> FWIW I am not sure that this is the right solution.  Logind has some
> other interfaces (notably the /run/systemd file system and the cgroups)
> and it really wants to be running from beginning to end.  If it's
> bus-activated, could it be killed at some point if it's inactive?  If so
> that would be bad I think.

I think it wouldn’t miss any log-in, because as soon as you log in
pam_elogind calls out to elogind, at which point it is started if it’s
not running yet.

Also it seems to me that dbus-daemon never kills inactive daemons, does
it?

On systemd-based systems, does logind get started on demand?

It seems safe, but perhaps I overlooked something.

> Maybe it's OK.  It certainly solves the race, in some way.  I think
> before a "guix system reconfigure" would restart logind, also; is that
> still the case?  Which is better?  Very murky to me.

‘guix system reconfigure’ starts new services, and restarts services
that are currently stopped.

If the ‘elogind’ Shepherd service was already started at the time ‘guix
system reconfigure’ runs, it would conservatively leave it as is instead
of trying to upgrade and restart it.

Thanks,
Ludo’.

      reply	other threads:[~2016-03-07 12:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-06 18:41 [PATCHES] Update elogind to 219.13 Andy Wingo
2016-03-06 21:35 ` Ludovic Courtès
2016-03-07  8:52   ` Andy Wingo
2016-03-07 10:01     ` Ludovic Courtès
2016-03-07 11:03       ` Andy Wingo
2016-03-07 12:09         ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87twkitrpl.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=wingo@igalia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.