unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: William <w@vieta.uk>
To: 27580@debbugs.gnu.org
Subject: bug#27580: Fwd: bug#27580: Elogin doesn't start properly
Date: Tue, 11 Jul 2017 08:33:36 +0100	[thread overview]
Message-ID: <CAPCYgVdQ2S_cfew7umOM98xtOFaFQNxDZ4OAn_sqt4if+wVDzA@mail.gmail.com> (raw)
In-Reply-To: <CAPCYgVfvS1HoWvb8H1oJM+xCx2P6bUSCOEnSEikpRs47ao8+Hw@mail.gmail.com>

Thanks for looking at this Ludo.

In systemd the systemd-logind.service looks a little like this:
    [Service]
    ExecStart=/usr/lib/systemd/systemd-logind
    BusName=org.freedesktop.login1

It looks as though it simply executes the systemd-logind program.

Shouldn't our shepherd service simply execute elogind-program-wrapper?
This may also be right because elogind handles things like the laptop
lid being closed, which should be handled even if no one has logged in
yet.

Will

On 10 July 2017 at 23:21, Ludovic Courtès <ludo@gnu.org> wrote:
> Hello,
>
> William <w@vieta.uk> skribis:
>
>> Elogind only starts when loginctl is executed as loginctl activates
>> elogind via DBus, meaning that it doesn't record any logins before
>> loginctl is run. I don't believe that this is intended; my Arch Linux
>> install doesn't miss any logins.
>
> I thought pam_elogind would trigger bus-activation but it does not,
> because of this:
>
>         /* Make this a NOP on non-logind systems */
>         if (!logind_running())
>                 return PAM_SUCCESS;
>
> where:
>
>   static inline bool logind_running(void) {
>           return access("/run/systemd/seats/", F_OK) >= 0;
>   }
>
> When the system is started, /run/systemd is empty, so pam_elogind
> directly returns success.
>
> I’m looking for a way to work around this; to be continued…
>
> Ludo’.
>
> PS: The problem does not happen with X and SLiM because they somehow
>     activate elogind before one has logged in.

  parent reply	other threads:[~2017-07-11 11:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-04 23:39 bug#27580: Elogin doesn't start properly William
2017-07-10 22:21 ` Ludovic Courtès
     [not found]   ` <CAPCYgVfvS1HoWvb8H1oJM+xCx2P6bUSCOEnSEikpRs47ao8+Hw@mail.gmail.com>
2017-07-11  7:33     ` William [this message]
2017-07-11  9:13     ` Ludovic Courtès

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=CAPCYgVdQ2S_cfew7umOM98xtOFaFQNxDZ4OAn_sqt4if+wVDzA@mail.gmail.com \
    --to=w@vieta.uk \
    --cc=27580@debbugs.gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).