From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UCx6HbyRbWd0WwEA62LTzQ:P1 (envelope-from ) for ; Thu, 26 Dec 2024 17:26:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id UCx6HbyRbWd0WwEA62LTzQ (envelope-from ) for ; Thu, 26 Dec 2024 18:26:20 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=sCyiWT0U; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=eBV+3Syw; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=eBV+3Syw; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735233980; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=DQFdRsp0jWGbO79DQ5i3C32I3vPshytA/wIDiy6y8N0=; b=FDZZDs/dYsYpvw0vXLJKvZQgi7aZy2oj3cNINZ7LlEe82JPAyPV8ovw+d+TQcwxXwzi+fb CkSjtvNSueJDQWEKydhyrFzoONVr7jG7EksP4bhhBgyZhY3ys2VkmXY9A4q5NrZ8ZKZ9bO zwYWbKuf0A/5mV2CmNrXV0U9FL0/1+JdMyFRHntgfc28y73jtbTufjoNquxL2QUNn0EJKf 0DEeNa8PR5Bo6mc08ycm8s1/1qrAH/KkttHNvtervE7xc3wyZNjYK69vMDv9d6Ak5EQjFT Xq22fZeH6A88x9n0uV7C3RuukQDibNU/HlSj9YR41zAbWtzjVK1JMVJb+/wlSQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=sCyiWT0U; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=eBV+3Syw; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=eBV+3Syw; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735233980; a=rsa-sha256; cv=none; b=TRGStIXcALZCZYojugomGj5CtwGhr5Yg8AUiyIeMK9W8No8U9jrQrLzy8idQsNJU5X9Lay dGTe8a+58FGVHCmbPPBqw8Jf2idV3ZlmNGx26jKtmiLhqjrqN6M7KJS2Oa3oOniSsa5uAZ NGn04oq9VDALuVCoVAdMQh+BcErq8gZR8V5DQ1xHiT3fASlzJjz4EWZ/pl7hlIwswGIJ5q NZqvn9axC0M7iQnCOI4N7fF5FWm6YQq4Ei7Y6Ybjk9ZdAPy6nrHOP5TcUf6wW+y9p3MahN sa8QmGjXaOfi/CP2Hy85JXsuLK4/bsiFjr9w0DldWGrmsYWzBS08WexYcdIgKQ== 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 1FFAC634C4 for ; Thu, 26 Dec 2024 18:26:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQrcb-0002pn-Db; Thu, 26 Dec 2024 12:26:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQrcY-0002pO-2f for bug-guix@gnu.org; Thu, 26 Dec 2024 12:26:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQrcX-0003GB-QF for bug-guix@gnu.org; Thu, 26 Dec 2024 12:26:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:MIME-Version:References:Date:From:To:Subject; bh=DQFdRsp0jWGbO79DQ5i3C32I3vPshytA/wIDiy6y8N0=; b=sCyiWT0Ugy++NXS2L27EHOnv3xnwti5Wym+HQ5Qr5DzytXI3BgAUAufdpJWsnc9pQltjkGtmbm79y3OOCVzCZluWBt4grHXxQ0vLtSHkxSExqOyghW/wWrHtcIckTrjWR7FoOXbLo4P7celrz02GdnClpgU06iTSrLUH6RsSqUUszB5H7FNPig4f+eC00/5OePnm+P0qbqdrG9tO9bEq6VgyEGksNhvGH99cHwL3HtLSR+tLEGah7lO2j9Avtn+tZBbBIu/39VowqyFA3+kd6G5EZ/CT63LZBh+rT1dwJA4mc8F4KXnWro0Igme3oZ7awR3FlRa8GkcYron5evPSCw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQrcX-0000ba-LJ for bug-guix@gnu.org; Thu, 26 Dec 2024 12:26:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74912: Shepherd: Growing number of user shepherds when relogging Resent-From: bokr@bokr.com Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 26 Dec 2024 17:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74912 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Jake , 74912@debbugs.gnu.org, Tomas Volf <~@wolfsden.cz> Received: via spool by 74912-submit@debbugs.gnu.org id=B74912.17352339412298 (code B ref 74912); Thu, 26 Dec 2024 17:26:01 +0000 Received: (at 74912) by debbugs.gnu.org; 26 Dec 2024 17:25:41 +0000 Received: from localhost ([127.0.0.1]:42076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQrcC-0000b0-GT for submit@debbugs.gnu.org; Thu, 26 Dec 2024 12:25:40 -0500 Received: from mailout.easymail.ca ([64.68.200.34]:33822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQrcA-0000ad-Lr for 74912@debbugs.gnu.org; Thu, 26 Dec 2024 12:25:39 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 78E6260D5D; Thu, 26 Dec 2024 17:25:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bokr.com; s=easymail; t=1735233932; bh=f1EU/Rmn9NftdTHVWy9UawE7moVEqmPOVnFzumQp7Ms=; h=From:Date:To:Cc:Subject:References:In-Reply-To:From; b=eBV+3SywPqIptsotjL/n7rUpW8w/HHR18hFjKscM7/NkndNXg3VQfiJR97d8LMB8e XXa1BmHheBUp+NsWaTTPppp3O3OTT+R4odIfw0tVbuHwn3sKEkRsrpBRw177zKzSAB 6YD7i2a8QnvwgHoE7DQornrb6K/njj/rTjY0YJYx2iNskrVQ7wA7mSPxiFbJrvdtuw r0hrHx+Pd8DzH9DvJIpKRCzPtqKYrKijbtRt1NOsHpV8w+cNp75OqbW3oxIOCSC1x3 xsK7S/vC+QYIWm+XjvH0vWEfE2JYmVogNVKBKdaTOSqVgiG2AOW3ljKcQ+JoFQpgrL fQo+mkZ5rQIAg== X-Virus-Scanned: Debian amavisd-new at emo09-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo09-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IQUg44cilD82; Thu, 26 Dec 2024 17:25:32 +0000 (UTC) Received: from localhost (unknown [50.208.209.153]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id C0C2A60BA6; Thu, 26 Dec 2024 17:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bokr.com; s=easymail; t=1735233932; bh=f1EU/Rmn9NftdTHVWy9UawE7moVEqmPOVnFzumQp7Ms=; h=From:Date:To:Cc:Subject:References:In-Reply-To:From; b=eBV+3SywPqIptsotjL/n7rUpW8w/HHR18hFjKscM7/NkndNXg3VQfiJR97d8LMB8e XXa1BmHheBUp+NsWaTTPppp3O3OTT+R4odIfw0tVbuHwn3sKEkRsrpBRw177zKzSAB 6YD7i2a8QnvwgHoE7DQornrb6K/njj/rTjY0YJYx2iNskrVQ7wA7mSPxiFbJrvdtuw r0hrHx+Pd8DzH9DvJIpKRCzPtqKYrKijbtRt1NOsHpV8w+cNp75OqbW3oxIOCSC1x3 xsK7S/vC+QYIWm+XjvH0vWEfE2JYmVogNVKBKdaTOSqVgiG2AOW3ljKcQ+JoFQpgrL fQo+mkZ5rQIAg== From: bokr@bokr.com Date: Thu, 26 Dec 2024 09:25:18 -0800 Message-ID: References: <87r064ippt.fsf@gnu.org> <877c7w7bxi.fsf@wolfsden.cz> <87o70yzpk7.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87o70yzpk7.fsf@gnu.org> 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -4.87 X-Spam-Score: -4.87 X-Migadu-Queue-Id: 1FFAC634C4 X-TUID: Cq8sGNpq137i On +2024-12-26 11:50:00 +0100, Ludovic Courtès wrote: > Hi! > > Tomas Volf <~@wolfsden.cz> skribis: > > > When you have another login session active when you log out and in > > again, new shepherd is *not* spawned. I am guessing here but probably > > last log out causes XDG_RUNTIME_DIR to be removed (by elogind in my > > case), so on log in there is no /run/user/$UID/on-first-login-executed, > > so it runs again and starts the shepherd. > > > > But even if that would be solved, since the runtime directory was nuked, > > there is no shepherd socket around anymore, so the (still running) > > shepherd from previous login session cannot be contacted by herd. > > Hmm, when is /run/user/UID deleted? > > > Of the top of my head I can think of two possible solutions: > > > > 1. Stop the shepherd on log out. So as we have on-first-login, we would > > have on-last-logout. I have no idea how to implement that. Maybe we > > could use ~/.bash_logout? Or some PAM thing? > > Or some elogind thing, rather? > > But then, how do we make it work on other distros? Maybe on systemd > distros shepherd receives SIGTERM or something, in which case it > terminates properly. > > > 2. Shepherd could shutdown gracefully when the control socket is deleted > > from the file system. It is arguable how useful running shepherd is > > without the socket anyway. > > I don’t think that’s workable: you’d need to poll/inotify for the > existence of that socket, but even if it exists on the file system, you > cannot tell whether it matches the socket you’re accepting on. > > Ludo’. > > > I wonder how many guix-daemon-process-relationship type problems would be simplified if (radical vision) one let wayland's inner event-driven loop/protocol be the dispatcher for guix processes instead of the current guix daemon switching between its collection of threads. I.e., all the guix threads would be individual login or spawned user processes securely communicating virtualizably (shared memory or networked rendezvous buffers etc) for offloading?