From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id frC3DA65sl9YBAAA0tVLHw (envelope-from ) for ; Mon, 16 Nov 2020 17:38:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ECoOCA65sl8pZgAAB5/wlQ (envelope-from ) for ; Mon, 16 Nov 2020 17:38:22 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A0D2F940118 for ; Mon, 16 Nov 2020 17:38:21 +0000 (UTC) Received: from localhost ([::1]:34336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1keiSK-0001Jp-Di for larch@yhetil.org; Mon, 16 Nov 2020 12:38:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1keiS2-00016N-Mi for bug-guix@gnu.org; Mon, 16 Nov 2020 12:38:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1keiS2-0004tn-Cm for bug-guix@gnu.org; Mon, 16 Nov 2020 12:38:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1keiS2-0006x3-9q for bug-guix@gnu.org; Mon, 16 Nov 2020 12:38:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44669: Shepherd loses track of elogind Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 16 Nov 2020 17:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44669 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 44669-submit@debbugs.gnu.org id=B44669.160554826226691 (code B ref 44669); Mon, 16 Nov 2020 17:38:02 +0000 Received: (at 44669) by debbugs.gnu.org; 16 Nov 2020 17:37:42 +0000 Received: from localhost ([127.0.0.1]:57091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1keiRh-0006wR-Ln for submit@debbugs.gnu.org; Mon, 16 Nov 2020 12:37:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1keiRf-0006wE-FM for 44669@debbugs.gnu.org; Mon, 16 Nov 2020 12:37:40 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37654) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1keiRZ-0004k8-Pw; Mon, 16 Nov 2020 12:37:33 -0500 Received: from host-37-191-236-253.lynet.no ([37.191.236.253]:33326 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1keiRP-0003iX-C7; Mon, 16 Nov 2020 12:37:24 -0500 From: Marius Bakke In-Reply-To: <873619wdpd.fsf@gnu.org> References: <877dqmb86i.fsf@gnu.org> <873619wdpd.fsf@gnu.org> Date: Mon, 16 Nov 2020 18:37:20 +0100 Message-ID: <87pn4d9p9r.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 44669@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -3.61 X-TUID: cdwtrtPe+UUF --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi Marius, > > Marius Bakke skribis: > >> On a newly-installed i7 system, Shepherd believes that the "elogind" >> service is not running. Yet there is an 'elogind-daemon' process, >> spawned by PID 1, preventing subsequent "herd start elogind" invocations >> from succeeding. > > Could you show the relevant /var/log/messages bits? That should show > when/why elogind stopped. Indeed. It was because I had 'sddm-service-type' configured, which attempted to communicate with "org.freedesktop.login1" over D-Bus, which in turn autostarted elogind before shepherd had gotten around to it. --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=elogind.log Nov 15 21:16:18 localhost dbus-daemon[427]: [system] Activating service name='org.freedesktop.login1' requested by ':1.2' (uid=0 pid=449 comm="/gnu/store/x577n8rs9zcf6ri4aka4pccyj74qxhwh-sddm-0") (using servicehelper) Nov 15 21:16:18 localhost vmunix: [ 46.137561] elogind-daemon[462]: New seat seat0. Nov 15 21:16:18 localhost vmunix: [ 46.138052] elogind-daemon[462]: Watching system buttons on /dev/input/event2 (Power Button) Nov 15 21:16:18 localhost vmunix: [ 46.193372] elogind-daemon[462]: Watching system buttons on /dev/input/event1 (Lid Switch) Nov 15 21:16:18 localhost vmunix: [ 46.193428] elogind-daemon[462]: Watching system buttons on /dev/input/event0 (Sleep Button) Nov 15 21:16:18 localhost avahi-daemon[444]: Server startup complete. Host name is sirius.local. Local service cookie is 3083842416. Nov 15 21:16:18 localhost vmunix: [ 46.496547] elogind-daemon[462]: Watching system buttons on /dev/input/event3 (AT Translated Set 2 keyboard) Nov 15 21:16:18 localhost vmunix: [ 46.496598] elogind-daemon[462]: Watching system buttons on /dev/input/event4 (ThinkPad Extra Buttons) Nov 15 21:16:18 localhost dbus-daemon[427]: [system] Successfully activated service 'org.freedesktop.login1' Nov 15 21:16:18 localhost vmunix: [ 46.498084] elogind-daemon[462]: New session c1 of user marius. Nov 15 21:16:18 localhost shepherd[1]: Service avahi-daemon has been started. Nov 15 21:16:18 localhost shepherd[1]: Service mcron has been started. Nov 15 21:16:18 localhost shepherd[1]: Service elogind has been started. Nov 15 21:16:18 localhost shepherd[1]: Respawning elogind. --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > That=E2=80=99s from 1.2.0rc1? Yes, and also 'master'. The initial i3 install with 1.2.0rc1 went fine, it was when I switched to SDDM + autologin (+ sway) that it failed. Now I no longer use SDDM (or any DM), but I was able to work around it by adding #:pid-file: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=diff Content-Transfer-Encoding: quoted-printable diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 265cf9f35f..6b7d832a44 100644 =2D-- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -770,7 +770,8 @@ seats.)" #:environment-variables (list (string-append "ELOGIND_CONF_FILE=3D" #$(elogind-configuration-file =2D config))))) + config))) + #:pid-file "/run/systemd/elogind.pid")) (stop #~(make-kill-destructor))))) =20 (define elogind-service-type --=-=-= Content-Type: text/plain The race between D-Bus and elogind should probably be handled by having org.freedesktop.login1 consumers depend on the 'elogind' service instead? --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFDBAEBCgAtFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl+yuNEPHG1hcml1c0Bn bnUub3JnAAoJEKKgbfKjOlT60q4H/R0UqEVOeIlvci9YFDdnViBX4P4/8cryV9Cf tcLFGSqMLg/XFZmeCG9khwZomBROkel4OIK17QKwIg/dfPc3z3zEiDXhE7iV7Oc9 kUDq23k5jbB0WQ4GjPXqyAYC2M9TzO8OtSN4AvMd3p+04zz4ikAYFzJRypXL/fXX JYihU+IYyBMsyOzMeP+QTWpwCxfb/d9Tkmr2LjbO54nGLWt3AXcv3KUPVkLf5i+s GvZGWYn8uma11e4Y6odQYtkBApq+D37GhV9UBKLIawf5n05JbhUNyDQTyuP0lf+F lOE8bTG9cwVzTuy+3vqhpF9nm2XNesnfyI4V6ZDStJLjQl1Xc8E= =ESOy -----END PGP SIGNATURE----- --==-=-=--