From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#27580: Elogin doesn't start properly Date: Tue, 11 Jul 2017 00:21:37 +0200 Message-ID: <87bmos2ary.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUh49-0007pw-TG for bug-guix@gnu.org; Mon, 10 Jul 2017 18:22:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUh46-0003f0-M9 for bug-guix@gnu.org; Mon, 10 Jul 2017 18:22:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58656) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUh46-0003ei-Ii for bug-guix@gnu.org; Mon, 10 Jul 2017 18:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dUh46-000695-EQ for bug-guix@gnu.org; Mon, 10 Jul 2017 18:22:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (William's message of "Wed, 5 Jul 2017 00:39:05 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: William Cc: 27580@debbugs.gnu.org Hello, William 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) >=3D 0; } When the system is started, /run/systemd is empty, so pam_elogind directly returns success. I=E2=80=99m looking for a way to work around this; to be continued=E2=80=A6 Ludo=E2=80=99. PS: The problem does not happen with X and SLiM because they somehow activate elogind before one has logged in.