From unknown Wed Aug 20 00:02:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27580: Elogin doesn't start properly Resent-From: William Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 05 Jul 2017 00:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27580 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 27580@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.149921414912930 (code B ref -1); Wed, 05 Jul 2017 00:23:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Jul 2017 00:22:29 +0000 Received: from localhost ([127.0.0.1]:52724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSY5N-0003MT-5o for submit@debbugs.gnu.org; Tue, 04 Jul 2017 20:22:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSXPZ-0000WR-5p for submit@debbugs.gnu.org; Tue, 04 Jul 2017 19:39:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSXPT-000086-9a for submit@debbugs.gnu.org; Tue, 04 Jul 2017 19:39:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:32777) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dSXPT-00007t-69 for submit@debbugs.gnu.org; Tue, 04 Jul 2017 19:39:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSXPR-000878-Rj for bug-guix@gnu.org; Tue, 04 Jul 2017 19:39:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSXPQ-00005b-Lx for bug-guix@gnu.org; Tue, 04 Jul 2017 19:39:09 -0400 Received: from mail-pg0-x230.google.com ([2607:f8b0:400e:c05::230]:33034) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSXPQ-0008V8-G1 for bug-guix@gnu.org; Tue, 04 Jul 2017 19:39:08 -0400 Received: by mail-pg0-x230.google.com with SMTP id k14so39667294pgr.0 for ; Tue, 04 Jul 2017 16:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vieta.uk; s=google; h=mime-version:from:date:message-id:subject:to; bh=YeNE/yLnNd52f8m8uam6WI+UE+GxQ1YA5brGZP12b2A=; b=WP7pZbjSJXpQBiDziFfE9vJxV9UFsCWduVkai9xs1NpaQmU4DjcDdMly87HED+skDR rESfoWWzFOHa/D/SBz62F+SOBc22uzMXJYnBDQR0S1QT0CF/QzcqeDVB9PTdBY1l4Xmo kv5FjmCOu4n6SbUc91wdx1bIrg4x68VHHr+S+dMQyX432SdI0YHVtMkHlR/qympXK8tm nZKhhdPmqYry2rN2uKbWus6lT62DkzKWNu0vWhInKMZiAUoYXujt2vrWJDVOehhEA1zb pyFumms8CgGIWhZ+rFc6biy8/IuxGDizc0J2Tonq49fOaadjs4rM6iWiNcxZaIYFI5we wWoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YeNE/yLnNd52f8m8uam6WI+UE+GxQ1YA5brGZP12b2A=; b=nawG53P/gddogVBBcEbby2fk+QV0D1yIn0tIyxDT3Bp4n7fQaocQM5ggvewhrsqSbT SJjfjmZnahllDr3oq6kBV2l/zqDi3E3uQO+Hep0zD/v+9Zn53ZC4keif0t0CMDVV2i9o ltBphe4RPGL+LrC7ZNWHRH2Xw9RtSEcoI/Rg6H3KouIsMCki6ieiEp06ZcVTmAuqkqnu /RvOZ3p5r8sVBXZ5k6VXK10iIr2lI1PNAh22+VzNPq9fYc2xb90NoNmi0fGXaaSDKv9X vAaUzu2AuINkVaToLLZ2Qz2SWq8EIWolft1wpTLuVzhGc2t/Z2DIzhFtQnG7pA4tJItJ efNA== X-Gm-Message-State: AIVw113mDpACB/8O9YAUtnoIy2Be6xTtOGZor2lCnaT4tMoezEpKafQA P84OVolflcSsWhNePh0hvAWYZKtSoZ4oFlY= X-Received: by 10.84.140.235 with SMTP id 98mr10845981plt.26.1499211545668; Tue, 04 Jul 2017 16:39:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.207.165 with HTTP; Tue, 4 Jul 2017 16:39:05 -0700 (PDT) From: William Date: Wed, 5 Jul 2017 00:39:05 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Tue, 04 Jul 2017 20:22:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) On my GuixSD VM (Guix release 0.13) elogind doesn't start at startup, despite (elogind-service) being used in config.scm. I am not using Xorg or a desktop manager like Slim. 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. My config.scm: --8<---------------cut here---------------start------------->8--- (services (cons* ;; Networking (service wpa-supplicant-service-type) (service connman-service-type (connman-configuration)) (service tlp-service-type) (service thermald-service-type) (udisks-service) (polkit-service) (elogind-service) (dbus-service) %base-services)) --8<---------------cut here---------------end--------------->8--- Output (just started up vm): --8<---------------cut here---------------start------------->8--- gollum login: cavej Password: This is the GNU operating system, welcome! gollum% loginctl dbus[392]: [system] activating service name='org.freedesktop.login1' (using servicehelper) [/gnu/store/ninbsrgj12ik3zjwk0vbcbmhwfkfhj7h-logind.conf:5] Unknown lvalue 'InhibitDelayMaxSecs' in section 'Login' [/gnu/store/ninbsrgj12ik3zjwk0vbcbmhwfkfhj7h-logind.conf:15] Unknown lvalue 'HolfoffTimeoutSecs' in section 'Login' [/gnu/store/ninbsrgj12ik3zjwk0vbcbmhwfkfhj7h-logind.conf:17] Unknown lvalue 'IdleActionSeconds' in section 'Login' [/gnu/store/ninbsrgj12ik3zjwk0vbcbmhwfkfhj7h-logind.conf:19] Unknown lvalue 'RemoveIpc' in section 'Login' dbus[392]: [system] Successfully activated service 'org.freedesktop.login1' New seat seat0. Watching system buttons on /dev/input/event0 (Power Button) SESSION UID USER SEAT 0 sessions listed. gollum% exit Respawning term-tty1 Service term-tty1 has been restarted. This is the GNU system. Welcome. gollum login: cavej Password: New session c1 of user cavej. This is the GNU operating system, welcome! gollum% loginctl SESSION UID USER SEAT c1 30011 cavej seat0 1 sessions listed. --8<---------------cut here---------------end--------------->8--- From unknown Wed Aug 20 00:02:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27580: Elogin doesn't start properly Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 10 Jul 2017 22:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27580 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: William Cc: 27580@debbugs.gnu.org Received: via spool by 27580-submit@debbugs.gnu.org id=B27580.149972531223605 (code B ref 27580); Mon, 10 Jul 2017 22:22:02 +0000 Received: (at 27580) by debbugs.gnu.org; 10 Jul 2017 22:21:52 +0000 Received: from localhost ([127.0.0.1]:33100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUh3v-00068f-Nu for submit@debbugs.gnu.org; Mon, 10 Jul 2017 18:21:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36723) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUh3t-00068Q-Kn for 27580@debbugs.gnu.org; Mon, 10 Jul 2017 18:21:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUh3l-0003RP-3X for 27580@debbugs.gnu.org; Mon, 10 Jul 2017 18:21:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUh3k-0003RJ-W8; Mon, 10 Jul 2017 18:21:41 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:46886 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dUh3k-0004EL-Bb; Mon, 10 Jul 2017 18:21:40 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 Messidor an 225 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Tue, 11 Jul 2017 00:21:37 +0200 In-Reply-To: (William's message of "Wed, 5 Jul 2017 00:39:05 +0100") Message-ID: <87bmos2ary.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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. From unknown Wed Aug 20 00:02:30 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: William Subject: bug#27580: closed (Re: bug#27580: Elogin doesn't start properly) Message-ID: References: <8760ezz68s.fsf@gnu.org> X-Gnu-PR-Message: they-closed 27580 X-Gnu-PR-Package: guix Reply-To: 27580@debbugs.gnu.org Date: Tue, 11 Jul 2017 09:14:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1499764442-6397-1" This is a multi-part message in MIME format... ------------=_1499764442-6397-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #27580: Elogin doesn't start properly which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 27580@debbugs.gnu.org. --=20 27580: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D27580 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1499764442-6397-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 27580-done) by debbugs.gnu.org; 11 Jul 2017 09:13:22 +0000 Received: from localhost ([127.0.0.1]:33361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUrEQ-0001e7-8i for submit@debbugs.gnu.org; Tue, 11 Jul 2017 05:13:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUrEO-0001du-O7 for 27580-done@debbugs.gnu.org; Tue, 11 Jul 2017 05:13:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUrEE-0000PT-VX for 27580-done@debbugs.gnu.org; Tue, 11 Jul 2017 05:13:15 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUrEE-0000PN-R5; Tue, 11 Jul 2017 05:13:10 -0400 Received: from [193.50.110.146] (port=49496 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dUrED-0006kD-M7; Tue, 11 Jul 2017 05:13:10 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: William Subject: Re: bug#27580: Elogin doesn't start properly References: <87bmos2ary.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 23 Messidor an 225 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Tue, 11 Jul 2017 11:13:07 +0200 In-Reply-To: (William's message of "Tue, 11 Jul 2017 08:32:47 +0100") Message-ID: <8760ezz68s.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27580-done Cc: 27580-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, (Please keep 27580-done@debbugs.gnu.org Cc=E2=80=99d.) William skribis: > 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. Good point, we should probably just start it from the Shepherd. Done: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D94a881178af9a9a91= 8ce6de55641daa245c92e73 Let me know if there are still problems. For the record, I tested with this config: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/system/examples/bare-bones.tmpl b/gnu/system/examples/bare-bones.tmpl index f7b8823d4..293182e53 100644 --- a/gnu/system/examples/bare-bones.tmpl +++ b/gnu/system/examples/bare-bones.tmpl @@ -2,7 +2,7 @@ ;; for a "bare bones" setup, with no X11 display server. (use-modules (gnu)) -(use-service-modules networking ssh) +(use-service-modules networking ssh desktop dbus) (use-package-modules admin) (operating-system @@ -38,12 +38,12 @@ %base-user-accounts)) ;; Globally-installed packages. - (packages (cons tcpdump %base-packages)) ;; Add services to the baseline: a DHCP client and ;; an SSH server. (services (cons* (dhcp-client-service) - (service openssh-service-type - (openssh-configuration - (port-number 2222))) + (elogind-service) + (service polkit-service-type) + (dbus-service) + %base-services))) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thank you! Ludo=E2=80=99. --=-=-=-- ------------=_1499764442-6397-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Jul 2017 00:22:29 +0000 Received: from localhost ([127.0.0.1]:52724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSY5N-0003MT-5o for submit@debbugs.gnu.org; Tue, 04 Jul 2017 20:22:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSXPZ-0000WR-5p for submit@debbugs.gnu.org; Tue, 04 Jul 2017 19:39:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSXPT-000086-9a for submit@debbugs.gnu.org; Tue, 04 Jul 2017 19:39:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:32777) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dSXPT-00007t-69 for submit@debbugs.gnu.org; Tue, 04 Jul 2017 19:39:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSXPR-000878-Rj for bug-guix@gnu.org; Tue, 04 Jul 2017 19:39:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSXPQ-00005b-Lx for bug-guix@gnu.org; Tue, 04 Jul 2017 19:39:09 -0400 Received: from mail-pg0-x230.google.com ([2607:f8b0:400e:c05::230]:33034) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSXPQ-0008V8-G1 for bug-guix@gnu.org; Tue, 04 Jul 2017 19:39:08 -0400 Received: by mail-pg0-x230.google.com with SMTP id k14so39667294pgr.0 for ; Tue, 04 Jul 2017 16:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vieta.uk; s=google; h=mime-version:from:date:message-id:subject:to; bh=YeNE/yLnNd52f8m8uam6WI+UE+GxQ1YA5brGZP12b2A=; b=WP7pZbjSJXpQBiDziFfE9vJxV9UFsCWduVkai9xs1NpaQmU4DjcDdMly87HED+skDR rESfoWWzFOHa/D/SBz62F+SOBc22uzMXJYnBDQR0S1QT0CF/QzcqeDVB9PTdBY1l4Xmo kv5FjmCOu4n6SbUc91wdx1bIrg4x68VHHr+S+dMQyX432SdI0YHVtMkHlR/qympXK8tm nZKhhdPmqYry2rN2uKbWus6lT62DkzKWNu0vWhInKMZiAUoYXujt2vrWJDVOehhEA1zb pyFumms8CgGIWhZ+rFc6biy8/IuxGDizc0J2Tonq49fOaadjs4rM6iWiNcxZaIYFI5we wWoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YeNE/yLnNd52f8m8uam6WI+UE+GxQ1YA5brGZP12b2A=; b=nawG53P/gddogVBBcEbby2fk+QV0D1yIn0tIyxDT3Bp4n7fQaocQM5ggvewhrsqSbT SJjfjmZnahllDr3oq6kBV2l/zqDi3E3uQO+Hep0zD/v+9Zn53ZC4keif0t0CMDVV2i9o ltBphe4RPGL+LrC7ZNWHRH2Xw9RtSEcoI/Rg6H3KouIsMCki6ieiEp06ZcVTmAuqkqnu /RvOZ3p5r8sVBXZ5k6VXK10iIr2lI1PNAh22+VzNPq9fYc2xb90NoNmi0fGXaaSDKv9X vAaUzu2AuINkVaToLLZ2Qz2SWq8EIWolft1wpTLuVzhGc2t/Z2DIzhFtQnG7pA4tJItJ efNA== X-Gm-Message-State: AIVw113mDpACB/8O9YAUtnoIy2Be6xTtOGZor2lCnaT4tMoezEpKafQA P84OVolflcSsWhNePh0hvAWYZKtSoZ4oFlY= X-Received: by 10.84.140.235 with SMTP id 98mr10845981plt.26.1499211545668; Tue, 04 Jul 2017 16:39:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.207.165 with HTTP; Tue, 4 Jul 2017 16:39:05 -0700 (PDT) From: William Date: Wed, 5 Jul 2017 00:39:05 +0100 Message-ID: Subject: Elogin doesn't start properly To: bug-guix@gnu.org Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 04 Jul 2017 20:22:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) On my GuixSD VM (Guix release 0.13) elogind doesn't start at startup, despite (elogind-service) being used in config.scm. I am not using Xorg or a desktop manager like Slim. 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. My config.scm: --8<---------------cut here---------------start------------->8--- (services (cons* ;; Networking (service wpa-supplicant-service-type) (service connman-service-type (connman-configuration)) (service tlp-service-type) (service thermald-service-type) (udisks-service) (polkit-service) (elogind-service) (dbus-service) %base-services)) --8<---------------cut here---------------end--------------->8--- Output (just started up vm): --8<---------------cut here---------------start------------->8--- gollum login: cavej Password: This is the GNU operating system, welcome! gollum% loginctl dbus[392]: [system] activating service name='org.freedesktop.login1' (using servicehelper) [/gnu/store/ninbsrgj12ik3zjwk0vbcbmhwfkfhj7h-logind.conf:5] Unknown lvalue 'InhibitDelayMaxSecs' in section 'Login' [/gnu/store/ninbsrgj12ik3zjwk0vbcbmhwfkfhj7h-logind.conf:15] Unknown lvalue 'HolfoffTimeoutSecs' in section 'Login' [/gnu/store/ninbsrgj12ik3zjwk0vbcbmhwfkfhj7h-logind.conf:17] Unknown lvalue 'IdleActionSeconds' in section 'Login' [/gnu/store/ninbsrgj12ik3zjwk0vbcbmhwfkfhj7h-logind.conf:19] Unknown lvalue 'RemoveIpc' in section 'Login' dbus[392]: [system] Successfully activated service 'org.freedesktop.login1' New seat seat0. Watching system buttons on /dev/input/event0 (Power Button) SESSION UID USER SEAT 0 sessions listed. gollum% exit Respawning term-tty1 Service term-tty1 has been restarted. This is the GNU system. Welcome. gollum login: cavej Password: New session c1 of user cavej. This is the GNU operating system, welcome! gollum% loginctl SESSION UID USER SEAT c1 30011 cavej seat0 1 sessions listed. --8<---------------cut here---------------end--------------->8--- ------------=_1499764442-6397-1-- From unknown Wed Aug 20 00:02:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27580: Fwd: bug#27580: Elogin doesn't start properly Resent-From: William Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 11 Jul 2017 11:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27580 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 27580@debbugs.gnu.org Received: via spool by 27580-submit@debbugs.gnu.org id=B27580.149977351527263 (code B ref 27580); Tue, 11 Jul 2017 11:46:01 +0000 Received: (at 27580) by debbugs.gnu.org; 11 Jul 2017 11:45:15 +0000 Received: from localhost ([127.0.0.1]:33408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUtbO-00075d-A8 for submit@debbugs.gnu.org; Tue, 11 Jul 2017 07:45:15 -0400 Received: from mail-pg0-f47.google.com ([74.125.83.47]:36861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUpg0-0007pG-2h for 27580@debbugs.gnu.org; Tue, 11 Jul 2017 03:33:44 -0400 Received: by mail-pg0-f47.google.com with SMTP id u62so62224071pgb.3 for <27580@debbugs.gnu.org>; Tue, 11 Jul 2017 00:33:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vieta.uk; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=n4jitNjlGx730x3KvODsWyBbfA91jRGWu3PB/FwcqaM=; b=LA+j4V8/TimZriwixK6d4qhiygmkty9R3jGwHTcrVENRmVTg/YR5NH/gAp4fYrs6va 7/PScl2FKE6O/8o0olyYihU05gcg6+JztXf8atakSO3vvpP4vYEaYuGbhP32TdqD6Ac9 ANsVI4qee6LXKMDpjB8h2DVtlmytxz/zF/WZLs3lELKeumzhP11qnlb9dOfOOitO946u gMRbYFTARuBABN6LkO2A1yO72ECYvGQsCBKBYuJLWbVe5py2SZ73iJzDehOj98tqktBW tzamP6qeoCIlTNv0hwW76LIwZH5AmISWU9feGY9gLeW/aQHAnxQIdngsRTDVKWlXON7I p8/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=n4jitNjlGx730x3KvODsWyBbfA91jRGWu3PB/FwcqaM=; b=tfBmK0BfJ9YVCPrUdKnjN70jxcU03H+ZY2cn9uS4SjPhrh+QzlnJ8+jbSI6P8jsImW sliuS5xdjpo059cHi2aHDwJ7eF3X65ln1KFUIOo7lKCpnSxwgIsEI4azd4GWjtTYZ21A HQL/10E5FRH+w0nRiAHsv/hpRHYcQ4yuXILZM4Cf6IFsuK2jKSBesEeyU2UHpAznZ9zG QGHKIm6PBe8kkeVKziSNoLu5iFTbFYAlFLLNYs5Uzip9KH6oLVQOA7Pj3j86OOjP0lqI JUhJCt6j/ZCMxYRZ56YjMG3WFrDdOv4H0bL78LAx4gRWd9gaWnWa8r3OFYpPeOdpUZkV gR5w== X-Gm-Message-State: AIVw113eIgom+zUrex9o/Ml0MTQpPEGRcDNgTk/cS1x3Ns3foNHNqWeA hhwvIm8x5xYsNuZMAlBrouzztmRO1FMlEjM= X-Received: by 10.99.123.28 with SMTP id w28mr18766096pgc.183.1499758417687; Tue, 11 Jul 2017 00:33:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.207.166 with HTTP; Tue, 11 Jul 2017 00:33:36 -0700 (PDT) In-Reply-To: References: <87bmos2ary.fsf@gnu.org> From: William Date: Tue, 11 Jul 2017 08:33:36 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.8 (--) X-Mailman-Approved-At: Tue, 11 Jul 2017 07:45:13 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) Thanks for looking at this Ludo. In systemd the systemd-logind.service looks a little like this: [Service] ExecStart=3D/usr/lib/systemd/systemd-logind BusName=3Dorg.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=C3=A8s wrote: > 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.