From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WCjbK3cyjWJ8+QAAbAwnHQ (envelope-from ) for ; Tue, 24 May 2022 21:31:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qBiWK3cyjWLD1gAAauVa8A (envelope-from ) for ; Tue, 24 May 2022 21:31:03 +0200 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 3A15D29B0B for ; Tue, 24 May 2022 21:31:03 +0200 (CEST) Received: from localhost ([::1]:33776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntaFC-0007em-3V for larch@yhetil.org; Tue, 24 May 2022 15:31:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntaBK-0003Am-0U for bug-guix@gnu.org; Tue, 24 May 2022 15:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59565) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntaBJ-0003Pf-NI for bug-guix@gnu.org; Tue, 24 May 2022 15:27:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntaBJ-0005Nw-Jh for bug-guix@gnu.org; Tue, 24 May 2022 15:27:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55444: elogind startup race between shepherd and dbus-daemon Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 24 May 2022 19:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55444 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 55444@debbugs.gnu.org Received: via spool by 55444-submit@debbugs.gnu.org id=B55444.165342036620604 (code B ref 55444); Tue, 24 May 2022 19:27:01 +0000 Received: (at 55444) by debbugs.gnu.org; 24 May 2022 19:26:06 +0000 Received: from localhost ([127.0.0.1]:53456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntaAQ-0005MG-Az for submit@debbugs.gnu.org; Tue, 24 May 2022 15:26:06 -0400 Received: from mail-ej1-f65.google.com ([209.85.218.65]:38648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntaAP-0005Lm-0d for 55444@debbugs.gnu.org; Tue, 24 May 2022 15:26:05 -0400 Received: by mail-ej1-f65.google.com with SMTP id n10so37348495ejk.5 for <55444@debbugs.gnu.org>; Tue, 24 May 2022 12:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=Kko55CzIKGNWNcrzd4gDD6y2nfciWDga3W/en6GFZkM=; b=U0aU8BWxCnYeDNq/xo9N9ODuKOkQADXYgLSnQIEdDH+PRRCnaXILv3d3yMgTs+Dlxb Xy2QWhoyq9r9NjJZvG7G7OWfN2lF0SfCQMpcAFG6vu+bXlPCXdj9Wu/Mn06CMyYSsEkm rw4Q6cC04pZ8JrCLjpwJActIuSwZGji57S73bU8wHB/SretgouX2AcrYN5EpdGhzfuIF zYLrQhJEDGtAKY81gBu0Us1pzuCiMBvktRWCi2arqB5/w9PweqohVz+65vP4PEDp/9Hl VbSyoML6mAt7GFtPUN2lW5d2zDRIqsrmU/V3r6/08Kg3Xdv1vb0rAx9/DONX6XFx2vUY xpXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=Kko55CzIKGNWNcrzd4gDD6y2nfciWDga3W/en6GFZkM=; b=7hMwd0afsc9J48GB45Dr9U2xEz11SZWFoxQbP4C7i8h/bPcnC69ZoNh5YfLk+5yMu9 gIZ6HesVrK0rn4kxntxldLKP06uukN3HI+fKiXlqYlMOI+9sEedpt5G+UTPzakQI9zwW tuMgrPEjSyJHycZ1SpCR62noM9c5s9CGwSjGvj9L08YaPlr3dFM9lFBH4STma1LTNarS y4lqaeZJwYSY1fVd1wwClRNXF3+kalIScbcLsV8+ytXiIEgTublihbz0PTLzv9nxif7a 0A7l/4a9fERVGuZkjEpFe99AW5BYqnd+C0c04pxOk5LuEMuvo2oYbRkzz+KJleO3Dda1 PwPA== X-Gm-Message-State: AOAM530jHM0+eHylDW7QfLu13iQC7J0Ry14AOcJdrlOU8Cha7J3Nr+5c Bt3mXnmajzwfp2EOMbOtn9Y= X-Google-Smtp-Source: ABdhPJzVGFZPIMB9UbXdJEj94LCRKeEGT75iSuBvm5fjSRTlk4O3GdxBacTuyza2GPnod/GYE5nUTg== X-Received: by 2002:a17:907:7da5:b0:6fe:d818:ee49 with SMTP id oz37-20020a1709077da500b006fed818ee49mr11948278ejc.58.1653420358845; Tue, 24 May 2022 12:25:58 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id p4-20020a17090664c400b006fea0532462sm5644176ejn.167.2022.05.24.12.25.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 May 2022 12:25:58 -0700 (PDT) Message-ID: <5a8b5f20da2676e03c696e33c029895292ed397e.camel@gmail.com> From: Liliana Marie Prikler Date: Tue, 24 May 2022 21:25:57 +0200 In-Reply-To: <877d6lc28o.fsf@inria.fr> References: <877d6lc28o.fsf@inria.fr> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653420663; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Kko55CzIKGNWNcrzd4gDD6y2nfciWDga3W/en6GFZkM=; b=bF/cs/zz5vdJmDhGc+tO/RyHinS6QfRxYScSI/xaHB1+dl8Lk5wb8tbjtUeGYVb8/hKIwN NYmRQpQH574qkPZ0UReY2uKmPphZS+o0/b21JlLc1bhJCej3YtgIqrB34pvHkz2aOscBT1 Ckzi3eTn9IBAtKomoVwUscSQw2NCwIj53bxPg7eg+IK3Xc8UMoZuStdkHLvWDr0n1o8Xyc k7l4W+BQCTQM0Gpp4IjRciUnjr7Tec10DURnRUYJm9RPMmLg0yphUmaD3g+Hij5w60++d7 jn2yqgLbECaQBx2uzwr0Ug6+Z6o/N2vdSP3Km1dE3pnI7x0SMze4Kp1C6SyyLw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653420663; a=rsa-sha256; cv=none; b=HyX2wmPmVjKxdXNL27j3XrbC2Ue2IfJN1qTPFw+D0nTX6U7bj0rNiH94Bp0iGUGKWxbvj6 b3EY/1npwywXcHARlQ98g9C8gnjfm/CBtmQBMmVwfSJs0ebx4hc96134HSnNxm4wdU3ZzR 8J0c/LtmPCBuMz0+r2aqqyAQoNVr/pZ+T7GXeQd/h9NboXugKSBa9VqNrKvj7/S94LBVGN 8+Yw7i9y9uZKojgMVj2cGAzYDGP5XMFN7XzgZLDmCBhMas1D848e+iiOQp56gQZMM8fKKv JmsH28YrEgNWCciqgvNciLlkZwEdR+J2+O6PxZFupMaO72+3DbKeTlvgXtOdrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=U0aU8BWx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=U0aU8BWx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3A15D29B0B X-Spam-Score: 4.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: mUXsxVfICzmw Hi, Am Montag, dem 16.05.2022 um 10:26 +0200 schrieb Ludovic Courtès: > [...] > So it would seem that the solution to this is to prevent dbus-daemon > from starting elogind.  We can do that by changing > org.freedesktop.login1.service so that it has “Exec=true” instead of > “Exec=elogind --daemon”. > > “Exec=true” is a bit crude because it doesn’t guarantee that elogind > is really started; if that isn’t good enough, we could instead wait > for the PID file or something (as of Shepherd 0.9.0, invoking ‘herd > start elogind’ potentially leads shepherd to start a second instance > if the first one is still being started, so we can’t really do that). Why does shepherd race with itself here? That sounds like a very evil bug. Rather than waiting for a log file, I'd suggest writing an ad-hoc Guile script that communicates with shepherd and blocks until shepherd signals that elogind has been started, but this script too would have to work around shepherd racing against itself. > Depending on what we end up with, we might also revisit whether > xorg-server needs to explicitly depend on elogind. At least in the case of GDM I think it does heavily depend on elogind. For the future, I think we also should take over dbus-daemon's autostart in the same way systemd already has. Cheers