From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 09:39:39 2025 Received: (at submit) by debbugs.gnu.org; 16 Feb 2025 14:39:39 +0000 Received: from localhost ([127.0.0.1]:33058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tjfo2-0001gU-Du for submit@debbugs.gnu.org; Sun, 16 Feb 2025 09:39:39 -0500 Received: from lists.gnu.org ([2001:470:142::17]:54408) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tjfnq-0001fz-8Z for submit@debbugs.gnu.org; Sun, 16 Feb 2025 09:39:32 -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 1tjfni-0006Uq-LC for bug-guix@gnu.org; Sun, 16 Feb 2025 09:39:18 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tjfnf-0007Ny-It for bug-guix@gnu.org; Sun, 16 Feb 2025 09:39:18 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 46668240027 for ; Sun, 16 Feb 2025 15:39:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1739716751; bh=a1GMIh8Id0Lx4zDcnxB91gbY13Z/MieoCoXKqB5o6uc=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type: Content-Transfer-Encoding:From; b=BOruin9Jfo7rrD/TP1znR0rl9dhlmd3d9IYw91knTIc+DiS8676xaOpeoVKH8ldNy QAWVpSSoBBwzDO75vtE6+SI4FnfHDtTLxAXy7ZLZvSQymANn+NEKJtyOjCSm+kFvgj fO1/DToCeCxjgVCKO2EaOdkE1bdasT5A1HSckjuGvxwFijqTxS6FsGapG8TOVXEzzY 453vkQ17VHDhTN10T/k8MW9LdGRs3YBHbwH3LVugvB9sYKWl/IC97KHagoAvDg9amt 6tssW+wY5FjILU86J1UwqtbXkqwqDYR361jfDPcSHKV/GmZGLgIKbjhqga+R0HUMHe dxu1bW5j8lJhQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YwpML6BfSz9rxK for ; Sun, 16 Feb 2025 15:39:10 +0100 (CET) Message-ID: Date: Sun, 16 Feb 2025 14:38:49 +0000 MIME-Version: 1.0 Content-Language: en-US To: bug-guix@gnu.org From: Dariqq Subject: shepherd restarts service during shutdown and then waits forever Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=dariqq@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit 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: -0.0 (/) Hi, After I updated today I noticed that the system was not shutting down properly. The reason was that stopping of user-processes causes shepherd to respawn thermald. The following is happening on tty12 (and is annoyingly not logged to /var/log/messages): [...] Stopping user processes Sending all processes the TERM Signal thermald : Terminating on user request Respawning thermald Service service thermald Service thermald running with value ... Service thermald has been started [...] Waiting for process termination (processes left (1 THERMALD-PID) Waiting for process termination (processes left (1 THERMALD-PID) Waiting for process termination (processes left (1 THERMALD-PID) [...] The issue is that thermald (and possibly other services) don't depend on user-processes service. Don't know why I had no problems until now. Have a nice day, Dariqq From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 12:23:48 2025 Received: (at 76338) by debbugs.gnu.org; 16 Feb 2025 17:23:48 +0000 Received: from localhost ([127.0.0.1]:36780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tjiMu-0005Ew-A0 for submit@debbugs.gnu.org; Sun, 16 Feb 2025 12:23:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38512) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tjiMs-0005EQ-Az for 76338@debbugs.gnu.org; Sun, 16 Feb 2025 12:23:47 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tjiMm-0005YL-SP; Sun, 16 Feb 2025 12:23:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=amiJgD5cBPio48IIWtVk2nVBylVSuolhfUXj8G0en7U=; b=TPFiFXoalKxdIeWhgcPd Y6nFmq93Z9eMFp7A7UNOPmk/DLyzzfRaDbmVBiaTJNrrhubAp91QHbF4iSnQGPP219lbPRDC4yt+Q iP+eIhBQQhEBcdj81r1nguXvcrRisYUSTgKTpbE6OrUiNdjTmoglcz3zLiJYDyrE5Ykj/ldoo/err I5KZGt8hS8wE+To4LIwRr1X9EytApwmcB6aNsU5KD6iwlm+AzlxsMs3A4izt6lljv0IKwzV7vzaAt PLJZy6+9H2EWtBxtq9lGebcYs1QTHCbw08Jw2k8SrtY53ZlB2ykHqs0sKkS9lCY8dKql2XJ2RMzXE rgA2qATwTVM84Q==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Dariqq Subject: Re: bug#76338: shepherd restarts service during shutdown and then waits forever In-Reply-To: (dariqq@posteo.net's message of "Sun, 16 Feb 2025 14:38:49 +0000") References: Date: Sun, 16 Feb 2025 18:23:37 +0100 Message-ID: <87frkdpzvq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76338 Cc: 76338@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: -3.3 (---) Hi, Dariqq skribis: > The issue is that thermald (and possibly other services) don't depend > on user-processes service. Don't know why I had no problems until now. This should be fixed: they should all depend on =E2=80=98user-processes=E2= =80=99. Probably the bug you=E2=80=99re seeing here was revealed by . But perhaps shepherd should also just disable all services when shutting down so that respawning doesn=E2=80=99t happen. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 12:46:21 2025 Received: (at control) by debbugs.gnu.org; 16 Feb 2025 17:46:21 +0000 Received: from localhost ([127.0.0.1]:36969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tjiij-0007BO-2v for submit@debbugs.gnu.org; Sun, 16 Feb 2025 12:46:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55088) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tjiig-0007Ay-CT for control@debbugs.gnu.org; Sun, 16 Feb 2025 12:46:19 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tjiib-0000Sn-1i for control@debbugs.gnu.org; Sun, 16 Feb 2025 12:46:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:Subject:From:To:Date:in-reply-to: references; bh=Xm37uTU+i45dnIqLrbpM7ewonudcvVBdK9lJmUaOp80=; b=V0pn83vyzTQvWa Y6oC+oVWf9gW1Yw6P8hU23sHhv4cP+U7C9jWMjl11jGvFhTfkxnJRrzHDGzVSmTovacO9WVhpe3J9 uMX9/XkRQnsNQgBBvfsEmXty324jMQCseX+XkqC+P1CZXWKR7XA7t0U3g2I6pHIHgaCM8451TiojR hxrzo5MYIujgO+waszXsWSbEmv2Fj2N1dm6ProGR5YdpM5k2TGTHBea/claCabYpCwBebEPwRQ6MZ nMmkIgKYiSiS95FOisdX9Yx59JHADV1+5qqq6grzD+kme6dcE2/KPBar35hSi8QM1sbyG+qVSlwZy JChMuwkELfxuWu/1U7eg==; Date: Sun, 16 Feb 2025 18:46:09 +0100 Message-Id: <871pvxpyu6.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #76338 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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: -3.3 (---) severity 76338 important quit From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 05:16:25 2025 Received: (at 76338) by debbugs.gnu.org; 17 Feb 2025 10:16:25 +0000 Received: from localhost ([127.0.0.1]:43307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tjyAq-0007r2-Od for submit@debbugs.gnu.org; Mon, 17 Feb 2025 05:16:25 -0500 Received: from mout02.posteo.de ([185.67.36.66]:58491) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tjyAn-0007qG-MK for 76338@debbugs.gnu.org; Mon, 17 Feb 2025 05:16:23 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0F33F240101 for <76338@debbugs.gnu.org>; Mon, 17 Feb 2025 11:16:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1739787375; bh=DjtGkCE/Vr5pKW7uGeI0eD+8TPMQXd5ZKfZx+g9fXSA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:Content-Type: Content-Transfer-Encoding:From; b=kaY7QVkR/tepD1N/yh/LKvpnRjwBgjv0WazezROpX3HFDXFuwdoWzog9FwlpWB5eQ 5xL2VfX09Ijkq86XfZns1me59gvq9CxyOyivEH5+ezn2kn5UlvHCT1oaBndaMLtjPu PYqNSZEx0+y5XRcZT3bAD0DeBhgJSpz0FMCc5ceI9O+YzA5JiQwMZiIht5SHDqJz6U 6sVGVB9PmBXb0GOfoxeMBM8r+swzyPmxIo6A0Hdg6DqyqvOhWrmZXwfREjQOj5tFnQ 0TF/kZ0TG6F76sBo7aGtRGhg5y+Htni0912SLvQE43E1U7p7R12XYtQYa2xDl0ESSt oN6JcT66MyEDQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YxJTT6fxJz9rxN; Mon, 17 Feb 2025 11:16:13 +0100 (CET) Message-ID: <0e689f92-c5e9-4c3b-8ccf-846471919839@posteo.net> Date: Mon, 17 Feb 2025 10:15:53 +0000 MIME-Version: 1.0 Subject: Re: bug#76338: shepherd restarts service during shutdown and then waits forever To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= References: <87frkdpzvq.fsf@gnu.org> Content-Language: en-US From: Dariqq In-Reply-To: <87frkdpzvq.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76338 Cc: 76338@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: -3.3 (---) Hi Ludo, On 16.02.25 18:23, Ludovic Courtès wrote: > Hi, > > Dariqq skribis: > >> The issue is that thermald (and possibly other services) don't depend >> on user-processes service. Don't know why I had no problems until now. > > This should be fixed: they should all depend on ‘user-processes’. > For the record I will not be verifying every daemon service manually in the guix codebase whether it correctly depends on user-processes. Many do directly however also a lot only do transitively. The problematic cases most likely are where a service sets no requirement field at all The two services that I know of are thermald and virtlogd. Also the purpose of the user-processes service (and maybe also the filesystems) service as synchronization targets are documented only in their definition and implicitly with the shepherd graph image. System-shepherd services that dont depend on anything are probably a bad idea and seems like a very common mistake for (new) users implementing their own services. Maybe this should be a a more explicit note in the documentation for shepherd-service-requirement and/or a small paragraph in the shepherd services intro? > Probably the bug you’re seeing here was revealed by > . > Is there a reason for user-processes to block on waiting for every process execpt PID1 to exit or why during the (sleep 1) calls other services (that falsely dont depend on user-processes) are not being stopped in the meantime which would help resolve the deadlock? This causes every daemon indirectly to depend on user-processes but shepherd may not know about it. > But perhaps shepherd should also just disable all services when shutting > down so that respawning doesn’t happen. I guess shepherd is just doing its duty as a service manager. Something else send SIGTERM/SIGKILL and shepherd kindly respawns it as instructed. But insisting on restarting a service seems a bit pointless to me during shutdown/reboot where everything will be terminated anyway. > > Ludo’. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 16:49:39 2025 Received: (at control) by debbugs.gnu.org; 17 Feb 2025 21:49:39 +0000 Received: from localhost ([127.0.0.1]:50381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tk8zj-00026e-Dt for submit@debbugs.gnu.org; Mon, 17 Feb 2025 16:49:39 -0500 Received: from wolfsden.cz ([37.205.8.62]:45764) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1tk8zg-00026D-Jl for control@debbugs.gnu.org; Mon, 17 Feb 2025 16:49:37 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id A8B3F31F3AA; Mon, 17 Feb 2025 21:49:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1739828975; bh=KByVU2MoSshq/0SOlhj2V1dDFb0RluIGAqsfjgO7mGY=; h=Date:To:From:Subject; b=A/ms/+QW552cwMYHcL7cSyBtB3Pi0dx4EMiveUdYntrLEQfEfOQV7dH5Ii+ogXUTn C4U41caGSNqblCT43y3R/Iri9DlUxXMjEr8Ce9VlodHR8aR1oAMa2B28i+1QXxDctk L2N1FE63LBtXkVk5lOuiywl0gNOf56OkzZz+Vmrevej7JKpDUNhVfxSoCsDEQI3s3B RnRC/QGpXp5+u6yiLQgtb49iKJXzkVRdl6/pvZF8QxzElLjVb4otWVDhDROFm4Zn2D 2BQI9FP47mP/wL+dUQVYqBp4arntxAyaq6S8uAmGAXGJbXKmCmu7iqVq1GpHUc8SF7 EwMnvdiQuI2e4maGQecXf1TgzNj/BlhA+Upxe6yI1uCb+3P0fXGdqEDBeNVX0SJsUA mqwGjC/p5vB7RP8TAza8/L47lr3BERjZhnRm9HI7hu6vEEyFA+jHryBqUCKK6f2ntj Up0xdC4nl3ZyIRzN98VrvxEIHcnlvv9RygpclXXtPp+xzMlfsEkaKrq7bPNqK1i6EI +g8t9cjiQqnhprgeWS2yswy+gCdSfJJtqjj31gq6GdfS+Cas1z4JRWeba42lDvebvD GFFpxw58McpidR+ColUZxAv6ZaurLjGZO5zKRGsVURaI18aWnvgd0yEEJsRtYvW8M8 /cy6buZKQE9jPxxFu/Iy0vqc= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 64BF631DE6C for ; Mon, 17 Feb 2025 21:49:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1739828975; bh=KByVU2MoSshq/0SOlhj2V1dDFb0RluIGAqsfjgO7mGY=; h=Date:To:From:Subject; b=A/ms/+QW552cwMYHcL7cSyBtB3Pi0dx4EMiveUdYntrLEQfEfOQV7dH5Ii+ogXUTn C4U41caGSNqblCT43y3R/Iri9DlUxXMjEr8Ce9VlodHR8aR1oAMa2B28i+1QXxDctk L2N1FE63LBtXkVk5lOuiywl0gNOf56OkzZz+Vmrevej7JKpDUNhVfxSoCsDEQI3s3B RnRC/QGpXp5+u6yiLQgtb49iKJXzkVRdl6/pvZF8QxzElLjVb4otWVDhDROFm4Zn2D 2BQI9FP47mP/wL+dUQVYqBp4arntxAyaq6S8uAmGAXGJbXKmCmu7iqVq1GpHUc8SF7 EwMnvdiQuI2e4maGQecXf1TgzNj/BlhA+Upxe6yI1uCb+3P0fXGdqEDBeNVX0SJsUA mqwGjC/p5vB7RP8TAza8/L47lr3BERjZhnRm9HI7hu6vEEyFA+jHryBqUCKK6f2ntj Up0xdC4nl3ZyIRzN98VrvxEIHcnlvv9RygpclXXtPp+xzMlfsEkaKrq7bPNqK1i6EI +g8t9cjiQqnhprgeWS2yswy+gCdSfJJtqjj31gq6GdfS+Cas1z4JRWeba42lDvebvD GFFpxw58McpidR+ColUZxAv6ZaurLjGZO5zKRGsVURaI18aWnvgd0yEEJsRtYvW8M8 /cy6buZKQE9jPxxFu/Iy0vqc= Date: Mon, 17 Feb 2025 22:49:35 +0100 Message-ID: <3c5c6a6450e2ba1385106276ec20add3@wolfsden.cz> To: control@debbugs.gnu.org From: Tomas Volf <~@wolfsden.cz> Subject: control message for bug #76368 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) merge 76368 76338 quit From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 19 13:08:11 2025 Received: (at 76338) by debbugs.gnu.org; 19 Feb 2025 18:08:12 +0000 Received: from localhost ([127.0.0.1]:51104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tkoUV-0002n1-BY for submit@debbugs.gnu.org; Wed, 19 Feb 2025 13:08:11 -0500 Received: from sail-ipv4.us-core.com ([208.82.101.137]:44288) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tkoUS-0002ma-Pw for 76338@debbugs.gnu.org; Wed, 19 Feb 2025 13:08:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=Y28/ViRbpSYjwtf 66ANdV8x2rvanWx52baMfwy9cW00=; h=date:subject:cc:to:from; d=lease-up.com; b=GRAo5C2QQVqgtrvp5m1IQanJVK7uGcktoRLT79sK0R+XVmx6fwBe 7gVnLweP1QKc3V40YakU1HF91nsPjopwKEBQZLFKXVwGtx7J9LWMqGvyGqKXTzX9zrnXzJ 2eVouPDvpZ6BvfTmlMTYaheRENWrQWzxJfApoVoSYGf9tavss= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id e2d85da9 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 19 Feb 2025 18:08:02 +0000 (UTC) From: Felix Lechner To: 76338@debbugs.gnu.org Subject: Rspamd too User-Agent: mu4e 1.12.7; emacs 29.4 Date: Wed, 19 Feb 2025 10:08:04 -0800 Message-ID: <87bjuxx0xn.fsf@lease-up.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76338 Cc: Dariqq , Ludovic =?utf-8?Q?Court=C3=A8s?= , Tomas Volf <~@wolfsden.cz> 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: -1.0 (-) Hi, I believe Rspamd should likewise depend on 'user-processes'. Thanks! Kind regards Felix From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 19 16:29:14 2025 Received: (at 76338) by debbugs.gnu.org; 19 Feb 2025 21:29:15 +0000 Received: from localhost ([127.0.0.1]:53316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tkrd3-0006pI-Pw for submit@debbugs.gnu.org; Wed, 19 Feb 2025 16:29:14 -0500 Received: from sender-pp-o93.zoho.in ([103.117.158.93]:3460) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tkrd0-0006oI-SC for 76338@debbugs.gnu.org; Wed, 19 Feb 2025 16:29:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1740000522; s=zoho; d=zohomail.in; i=ashvithshetty0010@zohomail.in; h=Message-ID:Subject:Subject:From:From:To:To:Cc:Cc:Date:Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:MIME-Version:Message-Id:Reply-To; bh=Rq6Ol2lQQ5+QFMA+wxcUVErAoEeeYzhc/66hR3qFvpA=; b=U3gPgqE3x12eMFnDsbOqzVfrGgZPWmcxTRmMkQ+AfV5IlvGkzBDQ2n/VEB8CgyhJ qInwGMbQ8u3Yj7k+0XV83oZs21Fa8fYSTdEuS9dKeQEvSu/l6KlXtLbxz1hvBCJwIYr 0cCP9M7KvSGklMvyKffLBr6+suau/4NIXe4JoBHs= Received: by mx.zoho.in with SMTPS id 1740000521022985.178080732815; Thu, 20 Feb 2025 02:58:41 +0530 (IST) Message-ID: <0bf18ad5d457fd5ca011e0d7b233d31208ac61b3.camel@zohomail.in> Subject: bug#76338: shepherd restarts service during shutdown and then waits forever From: Ashvith Shetty To: 76338@debbugs.gnu.org Date: Thu, 20 Feb 2025 02:58:09 +0530 In-Reply-To: (dariqq@posteo.net's message of "Sun, 16 Feb 2025 14:38:49 +0000") References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76338 Cc: Dariqq , Ludovic =?ISO-8859-1?Q?Court=E8s?= 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: -1.0 (-) Hello, I also have the same exact issue. Here's the shutdown log: --8<---------------cut here---------------start------------->8--- Feb 20 00:37:30 localhost elogind[426]: System is powering down. Feb 20 00:37:30 localhost elogind[426]: Removed session c2. Feb 20 00:37:30 localhost NetworkManager[503]: =20 [1739992050.8059] device (wlp3s0): state change: activated -> deactivating (reason 'connection-removed', sys-iface-state: 'managed') Feb 20 00:37:30 localhost NetworkManager[503]: =20 [1739992050.8069] manager: NetworkManager state is now CONNECTED_LOCAL Feb 20 00:37:30 localhost dbus-daemon[415]: [system] Activating service name=3D'org.freedesktop.nm_dispatcher' requested by ':1.10' (uid=3D0 pid=3D503 comm=3D"/gnu/store/zav4w5jrcn4yhcawg9l0smv7g2hmyais-networ") (using servicehelper) Feb 20 00:37:30 localhost dbus-daemon[415]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher' Feb 20 00:37:30 localhost vmunix: [40112.799390] wlp3s0: deauthenticating from 54:37:bb:d2:dd:3d by local choice (Reason: 3=3DDEAUTH_LEAVING) Feb 20 00:37:30 localhost shepherd[1]: Stopping service root...=20 Feb 20 00:37:30 localhost shepherd[1]: Exiting shepherd...=20 Feb 20 00:37:30 localhost shepherd[1]: Stopping service swap-swap...=20 Feb 20 00:37:30 localhost shepherd[1]: Service swap-swap stopped.=20 Feb 20 00:37:30 localhost shepherd[1]: Service swap-swap is now stopped.=20 Feb 20 00:37:30 localhost shepherd[1]: Stopping service lightdm...=20 Feb 20 00:37:31 localhost wpa_supplicant[437]: wlp3s0: CTRL-EVENT- DISCONNECTED bssid=3D54:37:bb:d2:dd:3d reason=3D3 locally_generated=3D1 Feb 20 00:37:31 localhost wpa_supplicant[437]: wlp3s0: CTRL-EVENT-DSCP- POLICY clear_all Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.2420] device (wlp3s0): state change: deactivating -> disconnected (reason 'connection-removed', sys-iface-state: 'managed') Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.2428] dhcp4 (wlp3s0): canceled DHCP transaction Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.2428] dhcp4 (wlp3s0): activation: beginning transaction (timeout in 45 seconds) Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.2429] dhcp4 (wlp3s0): state changed no lease Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.2435] dhcp6 (wlp3s0): canceled DHCP transaction Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.2435] dhcp6 (wlp3s0): activation: beginning transaction (timeout in 45 seconds) Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.2436] dhcp6 (wlp3s0): state changed no lease Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.2809] device (wlp3s0): set-hw-addr: set MAC address to 5E:3F:03:00:57:16 (scanning) Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.2908] dns-mgr: Removing DNS information from /gnu/store/139drha7awx79jb2js4m88p2jsl7zasc-openresolv- 3.13.2/sbin/resolvconf Feb 20 00:37:31 localhost nscd: 1232 monitored file `/etc/resolv.conf` was written to Feb 20 00:37:31 localhost shepherd[1]: Service lightdm stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Service lightdm is now stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Stopping service ssh-daemon...=20 Feb 20 00:37:31 localhost shepherd[1]: Service ssh-daemon stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Service ssh-daemon is now stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Stopping service avahi-daemon... Feb 20 00:37:31 localhost shepherd[1]: Service avahi-daemon stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Service avahi-daemon is now stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Stopping service ntpd...=20 Feb 20 00:37:31 localhost ntpd[619]: ntpd exiting on signal 15 (Terminated) Feb 20 00:37:31 localhost shepherd[1]: Service ntpd stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Service ntpd is now stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Stopping service dockerd...=20 Feb 20 00:37:31 localhost shepherd[1]: Service dockerd stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Service dockerd is now stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Stopping service NetworkManager...=20 Feb 20 00:37:31 localhost shepherd[1]: [NetworkManager] Terminated=20 Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.4008] dns-mgr: could not commit DNS changes: /gnu/store/139drha7awx79jb2js4m88p2jsl7zasc-openresolv- 3.13.2/sbin/resolvconf returned error code Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.5026] caught SIGTERM, shutting down normally. Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.5029] device (wlp3s0): supplicant interface state: completed -> disconnected Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.5029] device (p2p-dev-wlp3s0): supplicant management interface state: completed -> disconnected Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.5032] device (wlp3s0): supplicant interface state: disconnected -> interface_disabled Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.5033] device (p2p-dev-wlp3s0): supplicant management interface state: disconnected -> interface_disabled Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.5034] device (wlp3s0): supplicant interface state: interface_disabled -> disconnected Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.5035] device (p2p-dev-wlp3s0): supplicant management interface state: interface_disabled -> disconnected Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.5179] device (wlp3s0): state change: disconnected -> unmanaged (reason 'unmanaged', sys-iface-state: 'managed') Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.5719] device (wlp3s0): set-hw-addr: reset MAC address to 98:3B:8F:30:37:7A (unmanage) Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.5879] device (p2p-dev-wlp3s0): state change: disconnected - > unmanaged (reason 'removed', sys-iface-state: 'removed') Feb 20 00:37:31 localhost wpa_supplicant[437]: p2p-dev-wlp3s0: CTRL- EVENT-DSCP-POLICY clear_all Feb 20 00:37:31 localhost wpa_supplicant[437]: p2p-dev-wlp3s0: CTRL- EVENT-DSCP-POLICY clear_all Feb 20 00:37:31 localhost wpa_supplicant[437]: nl80211: deinit ifname=3Dp2p-dev-wlp3s0 disabled_11b_rates=3D0 Feb 20 00:37:31 localhost NetworkManager[503]: =20 [1739992051.6236] exiting (success) Feb 20 00:37:31 localhost shepherd[1]: Service NetworkManager stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Service NetworkManager is now stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Stopping service wpa- supplicant...=20 Feb 20 00:37:31 localhost wpa_supplicant[437]: wlp3s0: CTRL-EVENT-DSCP- POLICY clear_all Feb 20 00:37:31 localhost wpa_supplicant[437]: wlp3s0: CTRL-EVENT-DSCP- POLICY clear_all Feb 20 00:37:31 localhost wpa_supplicant[437]: nl80211: deinit ifname=3Dwlp3s0 disabled_11b_rates=3D0 Feb 20 00:37:31 localhost shepherd[1]: Service wpa-supplicant stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Service wpa-supplicant is now stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Stopping service bluetooth...=20 Feb 20 00:37:31 localhost bluetoothd[428]: Terminating Feb 20 00:37:31 localhost bluetoothd[428]: Stopping SDP server Feb 20 00:37:31 localhost bluetoothd[428]: Exit Feb 20 00:37:31 localhost shepherd[1]: Service bluetooth stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Service bluetooth is now stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Stopping service upower- daemon...=20 Feb 20 00:37:31 localhost shepherd[1]: Service upower-daemon stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Service upower-daemon is now stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Stopping service pam...=20 Feb 20 00:37:31 localhost shepherd[1]: Service pam stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Service pam is now stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Stopping service elogind...=20 Feb 20 00:37:31 localhost elogind[426]: Received signal 15 [TERM] Feb 20 00:37:31 localhost shepherd[1]: Service elogind stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Service elogind is now stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Stopping service libvirtd...=20 Feb 20 00:37:31 localhost shepherd[1]: Service libvirtd stopped.=20 Feb 20 00:37:31 localhost shepherd[1]: Service libvirtd is now stopped. Feb 20 00:37:31 localhost shepherd[1]: Stopping service dbus-system...=20 Feb 20 00:37:31 localhost ModemManager[531]: caught signal, shutting down...=20 Feb 20 00:37:31 localhost nm-dispatcher: Caught signal 15, shutting down... Feb 20 00:37:32 localhost shepherd[1]: Service dbus-system stopped.=20 Feb 20 00:37:32 localhost shepherd[1]: Service dbus-system is now stopped.=20 Feb 20 00:37:32 localhost ModemManager[531]: ModemManager is shut down=20 Feb 20 00:37:32 localhost shepherd[1]: Stopping service term-console... Feb 20 00:37:32 localhost shepherd[1]: Service term-console stopped.=20 Feb 20 00:37:32 localhost shepherd[1]: Service term-console is now stopped.=20 Feb 20 00:37:32 localhost shepherd[1]: Stopping service nscd...=20 Feb 20 00:37:32 localhost shepherd[1]: Service nscd stopped.=20 Feb 20 00:37:32 localhost shepherd[1]: Service nscd is now stopped.=20 Feb 20 00:37:32 localhost syslogd: exiting on signal 15 --8<---------------cut here---------------start------------->8--- Regards, Ashvith From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 20 14:51:01 2025 Received: (at 76338) by debbugs.gnu.org; 20 Feb 2025 19:51:02 +0000 Received: from localhost ([127.0.0.1]:41729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlCZZ-0006hC-3k for submit@debbugs.gnu.org; Thu, 20 Feb 2025 14:51:01 -0500 Received: from sail-ipv4.us-core.com ([208.82.101.137]:52744) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tlCZV-0006ga-PF for 76338@debbugs.gnu.org; Thu, 20 Feb 2025 14:50:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=PoBVuMLoCdrvggg K2hr6KzF+z1n6hapaQ2eMcppgdNI=; h=date:subject:cc:to:from; d=lease-up.com; b=WnfVEdCDcdXSskVFVShgSjc0kE6QnB1nA7dA7vejXhHeQ70kTWZI 8Ag+nAbFeHWHBREKVt+7D6QbGew/CkG4q/1XpGiSU9JpTwEyXccTolpjD9DnPt6NWFt/nk leSTI1s4nNgzbTnh0nRSonC9LJXEiov7Twofq9Ca9z0URHXYU= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id eb73f706 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 20 Feb 2025 19:50:50 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id ed4dccee; Thu, 20 Feb 2025 19:50:53 +0000 (UTC) From: Felix Lechner To: 76338@debbugs.gnu.org Subject: [PATCH v1] Add user-processes to services that prevent clean shutdowns. (Closes: #76338) Date: Thu, 20 Feb 2025 11:50:44 -0800 Message-ID: <0a0bd097f7120df4360959e0f89f4e07e586e5ec.1740081044.git.felix.lechner@lease-up.com> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76338 Cc: Dariqq , =?UTF-8?q?Ludovic=20Court=C3=A8s?= , Ashvith Shetty , Tomas Volf <~@wolfsden.cz>, Felix Lechner 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: -1.0 (-) It's at least a partial fix. Change-Id: Ifca81e4311f5145a3bb36f1ea338554079e121e2 --- gnu/services/mail.scm | 2 +- gnu/services/pm.scm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/services/mail.scm b/gnu/services/mail.scm index 18b482272c..210a226ccf 100644 --- a/gnu/services/mail.scm +++ b/gnu/services/mail.scm @@ -2317,7 +2317,7 @@ (define-configuration/no-serialization rspamd-configuration (boolean #f) "Do not apply Jinja templates.") (shepherd-requirements - (list-of-symbols '(loopback)) + (list-of-symbols '(loopback user-processes)) "This is a list of symbols naming Shepherd services that this service will depend on.")) diff --git a/gnu/services/pm.scm b/gnu/services/pm.scm index 1978de55d4..fa18af254b 100644 --- a/gnu/services/pm.scm +++ b/gnu/services/pm.scm @@ -512,6 +512,7 @@ (define (thermald-shepherd-service config) (shepherd-service (provision '(thermald)) (documentation "Run thermald cpu frequency scaling.") + (requirement '(user-processes)) (start #~(make-forkexec-constructor '(#$(file-append (thermald-thermald config) "/sbin/thermald") "--no-daemon" base-commit: 40e83f8f72fc831c94dc6d42664be50db755344b -- 2.48.1 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 20 14:55:08 2025 Received: (at control) by debbugs.gnu.org; 20 Feb 2025 19:55:08 +0000 Received: from localhost ([127.0.0.1]:41788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlCdX-00077C-Gd for submit@debbugs.gnu.org; Thu, 20 Feb 2025 14:55:07 -0500 Received: from sail-ipv4.us-core.com ([208.82.101.137]:47104) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tlCdU-00076S-0T for control@debbugs.gnu.org; Thu, 20 Feb 2025 14:55:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=ex+NzhEqfSt33+8 8MvNBVG75VwZGHY65+42Nfz/yjA4=; h=date:subject:to:from; d=lease-up.com; b=c+S4QjvHmpOenM/nPwP8VnkD35dj+3XgCX0l+QNAW28UefVgTv2FFgAe1dEiyr2Y8mLS Nb1iIpXfURtAlnXcgdzRJPSpbZkxCng8d/2HcvR2jWKj73nNcFG6ZN5IAsG26hyDW9iURB 77RYpAxK5NzHkns+LS8+VptuiQfD9uXaY= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 15f02a83 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Thu, 20 Feb 2025 19:54:57 +0000 (UTC) From: Felix Lechner To: control@debbugs.gnu.org Subject: Updated to grave due to potential data loss User-Agent: mu4e 1.12.7; emacs 29.4 Date: Thu, 20 Feb 2025 11:55:00 -0800 Message-ID: <874j0ov1bf.fsf@lease-up.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) severity 76338 grave tags 76338 + patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 20 23:29:52 2025 Received: (at 76338) by debbugs.gnu.org; 21 Feb 2025 04:29:52 +0000 Received: from localhost ([127.0.0.1]:48930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlKff-0007Od-S0 for submit@debbugs.gnu.org; Thu, 20 Feb 2025 23:29:52 -0500 Received: from mail-108-mta128.mxroute.com ([136.175.108.128]:36815) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tlKfd-0007O1-Mn for 76338@debbugs.gnu.org; Thu, 20 Feb 2025 23:29:50 -0500 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta128.mxroute.com (ZoneMTA) with ESMTPSA id 19526c4d27b000310e.001 for <76338@debbugs.gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 21 Feb 2025 04:29:48 +0000 X-Zone-Loop: 22e4f6806b6153461d782018ab40950046f2bf9702a0 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rY5ljBw85tNCZR/gz/NgHdJJN3aFNiai5Wl0zB6uf2g=; b=iIobDTAeoChzqh9X2syz+aS7aF yeS8gOdyadmKsDo9aKdQvvXOuE8rwnVujbFdWL0xT+ygawGS40TzqZHmewsyCHjGP5GoO4EFeLM+g qxFeA+zzOzQctPGIvA2/y2Ditma6XR055Z/wlkhtwuMfSHYhjEffXqItJYeP+Ww/sv9jj/RBG9Sd/ EeWG/TleqzOb6gu6rNI0SuWVJBYcEOJERClS47S4tjJo9sGgBRnkpxXtSuiq6hW4lApmxEpMLqto4 PcEFdn07yCuGh/OtoCFbCrvBVOTSsCxKYWALELFUtMfuRXyguUadClqGfLP6Xg41yLokIGLUI3wOw +5LLTN/A==; From: Richard Sent To: Felix Lechner via Bug reports for GNU Guix Subject: Re: bug#76338: [PATCH v1] Add user-processes to services that prevent clean shutdowns. (Closes: #76338) In-Reply-To: <0a0bd097f7120df4360959e0f89f4e07e586e5ec.1740081044.git.felix.lechner@lease-up.com> (Felix Lechner via Bug reports for's message of "Thu, 20 Feb 2025 11:50:44 -0800") References: <0a0bd097f7120df4360959e0f89f4e07e586e5ec.1740081044.git.felix.lechner@lease-up.com> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Thu, 20 Feb 2025 23:29:36 -0500 Message-ID: <87r03rdiof.fsf@freakingpenguin.com> MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: richard@freakingpenguin.com X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76338 Cc: 76338@debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= , Ashvith Shetty , Felix Lechner , Dariqq , Tomas Volf <~@wolfsden.cz> 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: -1.0 (-) I believe this fix is also required for the Shepherd services in virtlogd-service-type, containerd-service-type, and rngd-service-type [1]. (I've not observed rngd outright halt shutdown, but Shepherd does seem to still periodically respawn it while shutdown is ongoing.) [1]: https://issues.guix.gnu.org/76368#0 -- Take it easy, Richard Sent Making my computer weirder one commit at a time. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 21 05:52:14 2025 Received: (at 76338) by debbugs.gnu.org; 21 Feb 2025 10:52:14 +0000 Received: from localhost ([127.0.0.1]:54654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlQdh-0001Ux-AL for submit@debbugs.gnu.org; Fri, 21 Feb 2025 05:52:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40338) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tlQde-0001Tx-OE for 76338@debbugs.gnu.org; Fri, 21 Feb 2025 05:52:11 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tlQdZ-0002yA-A7; Fri, 21 Feb 2025 05:52:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=zaU12TptcAKaYF+vHUMKU1u3WXSx7JbUbAdCTufet+0=; b=fcoqcyr8f9++JCwQBNAP q8/u7+69pwYS+jFBOUMMVOyqrsfYXTaLNRBKepK7YeVKcfPf6LUVo4I64opuqZe5KR2nPplX9cO82 hW5BFSxlD6kDUmIAtIgl1poJJCaPW/dZd4qaFochCW1uPL1UR5zd9oD9H7bnYRHAkn74Em4d9FwHZ U+C4gaO3BktQaR977VbAr0sce6wylic4g6IpbKVdhbNcNCM6jztair8h5tpPrfoQbNwP4+9qzYy37 jG9GyX43hrMXeD9fT2SwLZO4gO+X2gGGRuPkgyIMgD7L5pbsfN3NMFxNKAShQTMscAN8jDkmZ4XAF ly2l4Uwdl59i9w==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Dariqq Subject: Re: bug#76338: shepherd restarts service during shutdown and then waits forever In-Reply-To: <0e689f92-c5e9-4c3b-8ccf-846471919839@posteo.net> (dariqq@posteo.net's message of "Mon, 17 Feb 2025 10:15:53 +0000") References: <87frkdpzvq.fsf@gnu.org> <0e689f92-c5e9-4c3b-8ccf-846471919839@posteo.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Tridi 3 =?utf-8?Q?Vent=C3=B4se?= an 233 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du Violier 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-pc-linux-gnu Date: Fri, 21 Feb 2025 11:52:01 +0100 Message-ID: <87zfifa7u6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76338 Cc: 76338@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: -3.3 (---) Hello, Dariqq skribis: > The two services that I know of are thermald and virtlogd. I found these: --8<---------------cut here---------------start------------->8--- scheme@(guix scripts system search)> ,pp (map shepherd-service-provision (append-map (lambda (services) (remove (lambda (service) (memq 'user-processes (shepherd-service-requirement service))) services)) (map service-type-default-shepherd-services (fold-service-types co= ns '())))) $7 =3D ((user-homes) (tailon) (agate) (varnish-default) (httpd) (fcgiwrap) (mumi) (mumi-worker) (mumi-mailer) (php-fpm) (whoogle-search) (hpcguix-web) (gmnisrv) (vpn-client) (ipsec) (vpn-server) (xvnc vncserver) (git-daemon) (mumble-server) (jami-dbus-session) (jami) (sysctl) (autossh) (ssh-daemon ssh sshd) (webssh) (ssh-daemon ssh sshd) (ssh-daemon ssh sshd) (spice-vdagentd) (speakersafetyd) (system-log syslogd) (pcscd) (samba-nmbd) (samba-smbd) (samba-winbindd) (wsdd) (rsync) (thermald) (rpcbind-daemon) (idmap-daemon) (gss-daemon) (rpc-pipefs) (pagekite) (ipfs) (vswitchd) (unblocked-wifi) (iptables) (nftables) (opendht dhtnode dhtproxy) (prometheus-node-exporter) (vnstatd) (radicale) (dovecot) (rspamd) (imap4d) (kernel-module-loader) (rasdaemon) (cachefilesd) (directory-server-localhost) (guix-data-service) (guix-data-service-setup-database) (guix-data-service-process-jobs) (guix-build-coordinator) (wesnoth-daemon) (joycond) (transmission-daemon transmission bittorrent) (dockerd) (containerd) (kresd) (dnsmasq) (inputattach) (elogind) (bluetooth) (x11-socket-directory) (seatd elogind) (upower-daemon) (postgres-roles) (mysql-upgrade) (cups) (cgroups2-limits) (cgroups2-fs-owner) (laminar) (gpm) (udev) (urandom-seed) (virtual-terminal) (trng) (user-processes) (auditd)) --8<---------------cut here---------------end--------------->8--- Some of them are legitimate, many are not. (Not sure why =E2=80=98virtlogd= =E2=80=99 doesn=E2=80=99t show up here.) > Also the purpose of the user-processes service (and maybe also the > filesystems) service as synchronization targets are documented only in > their definition and implicitly with the shepherd graph > image. System-shepherd services that dont depend on anything are > probably a bad idea and seems like a very common mistake for (new) > users implementing their own services. > Maybe this should be a a more explicit note in the documentation for > shepherd-service-requirement and/or a small paragraph in the shepherd > services intro? Yes, agreed. I=E2=80=99m not entirely sure where to document it; do you ha= ve ideas? (The doc in this area probably needs a Spring cleanup=E2=80=A6) > Is there a reason for user-processes to block on waiting for every > process execpt PID1 to exit or why during the (sleep 1) calls other > services (that falsely dont depend on user-processes) are not being > stopped in the meantime which would help resolve the deadlock? The assumption is that services have been stopped by the time =E2=80=98user-processes=E2=80=99 is stopped (because they=E2=80=99re suppos= ed to depend on it). Thus, when =E2=80=98user-processes=E2=80=99 is stopped, normally only user = processes are left. > But insisting on restarting a service seems a bit pointless to me > during shutdown/reboot where everything will be terminated anyway. Agreed, I=E2=80=99ll see how to do that on the shepherd side. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 21 10:05:36 2025 Received: (at 76338) by debbugs.gnu.org; 21 Feb 2025 15:05:36 +0000 Received: from localhost ([127.0.0.1]:58199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlUar-0004KD-M3 for submit@debbugs.gnu.org; Fri, 21 Feb 2025 10:05:35 -0500 Received: from mout01.posteo.de ([185.67.36.65]:35407) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tlUah-0004FH-Lh for 76338@debbugs.gnu.org; Fri, 21 Feb 2025 10:05:29 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 44028240027 for <76338@debbugs.gnu.org>; Fri, 21 Feb 2025 16:05:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1740150317; bh=BLPBEIw+RVtOvzp4IIUrQX4Wrg6MfnN9LYf6LtEUxec=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:Content-Type: Content-Transfer-Encoding:From; b=e0N11YO9xlB0Qfnpitwo9OqbwZ5WmN5GhfZdcF+qtAjcT/PsVB+g7M9NLmR/FA1sq lJGKgwhyYLIIA5Aeq2yXEVx1CroBn5ialpDFMxa2oO580cSm3A7gWptFeb7E5WuKOk YS7On/C2pnR/sIK1hdv5ETlywh1H1GZfevERdxT+fFq+m5HgSVvkua3YddwB5jl7fw dGZbxNvnwpXRcmeQ60kLrv28SwIqRbXn99NHUDpTSM3nWBbvjOloFUdANJ3pGrU4SF Veffpo/MKpE4ZOi6RzGv/rvxjKo4/xKTNpsBJWrpB5Eefc36pjE9Wj9tsTaxzalN4P qS2Sul9M5FQ6g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Yztj81My7z9rxK; Fri, 21 Feb 2025 16:05:16 +0100 (CET) Message-ID: Date: Fri, 21 Feb 2025 15:04:54 +0000 MIME-Version: 1.0 Subject: Re: bug#76338: shepherd restarts service during shutdown and then waits forever To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= References: <87frkdpzvq.fsf@gnu.org> <0e689f92-c5e9-4c3b-8ccf-846471919839@posteo.net> <87zfifa7u6.fsf@gnu.org> Content-Language: en-US From: Dariqq In-Reply-To: <87zfifa7u6.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76338 Cc: 76338@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: -3.3 (---) Hello, On 21.02.25 11:52, Ludovic Courtès wrote: > Hello, > > Dariqq skribis: > >> The two services that I know of are thermald and virtlogd. > > I found these: > > --8<---------------cut here---------------start------------->8--- > scheme@(guix scripts system search)> ,pp (map shepherd-service- > provision (append-map (lambda (services) (remove (lambda (service) > (memq 'user-processes (shepherd-service-requirement service))) > services)) (map service-type-default-shepherd-services (fold- > service- types cons '())))) > > Some of them are legitimate, many are not. (Not sure why ‘virtlogd’ > doesn’t show up here.) > Neat trick. A lot more than I thought. >> Also the purpose of the user-processes service (and maybe also the >> filesystems) service as synchronization targets are documented >> only in their definition and implicitly with the shepherd graph >> image. System-shepherd services that dont depend on anything are >> probably a bad idea and seems like a very common mistake for (new) >> users implementing their own services. Maybe this should be a a >> more explicit note in the documentation for shepherd-service- >> requirement and/or a small paragraph in the shepherd services >> intro? > > Yes, agreed. I’m not entirely sure where to document it; do you > have ideas? > Maybe near the shepherd-graph image in "Shepherd Services" where the special "targets" can be seen as well (the image looks a bit outdated as e.g.the filesystem "target" is missing)? Not sure if there is another "target" worth documenting. Also maybe a comment or warning in the documentation for shepherd- service-requirement field that root-shepherd services that don't depend on anything/ don't depend on user-processes is most likely not what a user wants for a usual daemon service? Consistency in all guix services helps as well,s.t. one can look at an example and then wonder what this user-processes service is about. > (The doc in this area probably needs a Spring cleanup…) > > > Thanks, Ludo’. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 22 17:24:37 2025 Received: (at 76338) by debbugs.gnu.org; 22 Feb 2025 22:24:37 +0000 Received: from localhost ([127.0.0.1]:57585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlxvG-0003C1-Mr for submit@debbugs.gnu.org; Sat, 22 Feb 2025 17:24:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34934) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tlxvD-0003Be-2F for 76338@debbugs.gnu.org; Sat, 22 Feb 2025 17:24:33 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tlxv7-0004Ug-6c; Sat, 22 Feb 2025 17:24:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=Yd3vjREBhKgiWNU4xIpj4XFv2YEFAiYCUzzxqgr1S7g=; b=YorDakGgeh1Sio4FISWb sOicwTBAsC4Fv3e2wcCTomec/z9OUvPJLIRwOmIhn4XkCvsTpbP/W5WDNX2GkXTzTM+HQQ+v7dtda EEd/Wn2VN3TD8YAUxy2rIyYxB1ubVmbhsniTg+mNsNe23OQcFwDPMo5DXofDDDvXCLj62sh/uKE0L u+8y0moVuAGsnEc/qXfMUdiwHwYeFmJO7+7RWG52DJoc00i3vXmFn7N5qF3pWVA9rtepDbtlL/YFs ahn9GqTj4WjAhIUp6eePkY6u/0YbelFPfLVPu7fLQBn/tBbS37VhMwWCM1uCK89bH2M984pLDT+zG 4/1qxhzSGRDHkA==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 76338@debbugs.gnu.org Subject: [PATCH 1/2] =?UTF-8?q?services:=20Add=20missing=20Shepherd=20depe?= =?UTF-8?q?ndency=20on=20=E2=80=98user-processes=E2=80=99.?= Date: Sat, 22 Feb 2025 23:23:48 +0100 Message-ID: X-Mailer: git-send-email 2.48.1 In-Reply-To: <87r03rdiof.fsf@freakingpenguin.com> References: <87r03rdiof.fsf@freakingpenguin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Liliana Marie Prikler , Ludovic Courtès , Maxim Cournoyer , Vivien Kraus Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76338 Cc: Dariqq , =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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: -3.3 (---) Fixes . * gnu/services/auditd.scm (auditd-shepherd-service): * gnu/services/base.scm (rngd-service-type): (gpm-shepherd-service): * gnu/services/ci.scm (laminar-shepherd-service): * gnu/services/containers.scm (rootless-podman-cgroups-fs-owner-service): (rootless-podman-cgroups-limits-service): * gnu/services/cups.scm (cups-shepherd-service): * gnu/services/databases.scm (postgresql-role-shepherd-service): * gnu/services/desktop.scm (upower-shepherd-service): (bluetooth-shepherd-service): (elogind-shepherd-service): (inputattach-shepherd-service): (seatd-shepherd-service): * gnu/services/dns.scm (knot-resolver-shepherd-services): (dnsmasq-shepherd-service): * gnu/services/docker.scm (containerd-shepherd-service): (docker-shepherd-service): * gnu/services/file-sharing.scm (transmission-daemon-shepherd-service): * gnu/services/games.scm (joycond-shepherd-service): (wesnothd-shepherd-service): * gnu/services/guix.scm (guix-build-coordinator-shepherd-services): (guix-data-service-shepherd-services): (nar-herder-shepherd-services): (bffe-shepherd-services): * gnu/services/ldap.scm (directory-server-shepherd-service): * gnu/services/linux.scm (cachefilesd-shepherd-service): (rasdaemon-shepherd-service): * gnu/services/mail.scm (dovecot-shepherd-service): (imap4d-shepherd-service): (radicale-shepherd-service): (rspamd-configuration): * gnu/services/monitoring.scm (prometheus-node-exporter-shepherd-service): (vnstat-shepherd-service): * gnu/services/networking.scm (opendht-shepherd-service): (openvswitch-shepherd-service): (pagekite-shepherd-service): (ipfs-shepherd-service): * gnu/services/nfs.scm (rpcbind-service-type): (gss-service-type): (idmap-service-type): * gnu/services/pm.scm (thermald-shepherd-service): * gnu/services/rsync.scm (rsync-shepherd-service): * gnu/services/samba.scm (samba-samba-shepherd-service): (samba-nmbd-shepherd-service): (samba-smbd-shepherd-service): (samba-winbindd-shepherd-service): (wsdd-shepherd-service): * gnu/services/security-token.scm (pcscd-shepherd-service): * gnu/services/sound.scm (speakersafetyd-shepherd-service): * gnu/services/spice.scm (spice-vdagent-shepherd-service): * gnu/services/ssh.scm (lsh-shepherd-service): (openssh-shepherd-service): (dropbear-shepherd-service): (autossh-shepherd-service): * gnu/services/telephony.scm (jami-shepherd-services): (mumble-server-shepherd-service): * gnu/services/version-control.scm (git-daemon-shepherd-service): * gnu/services/virtualization.scm (virtlogd-shepherd-service): * gnu/services/vnc.scm (xvnc-shepherd-service): * gnu/services/vpn.scm (openvpn-shepherd-service): (strongswan-shepherd-service): * gnu/services/web.scm (httpd-shepherd-services): (fcgiwrap-shepherd-service): (php-fpm-shepherd-service): (hpcguix-web-shepherd-service): (tailon-shepherd-service): (varnish-shepherd-service): (whoogle-shepherd-service): (mumi-shepherd-services): (gmnisrv-shepherd-service): (agate-shepherd-service): Add ‘user-processes’ requirement. * doc/guix.texi (Mail Services): Update accordingly. Reported-by: Dariqq Change-Id: I947bd2afc83b786cb17c555cfe73ab586b806618 --- doc/guix.texi | 2 +- gnu/services/auditd.scm | 1 + gnu/services/base.scm | 4 ++-- gnu/services/ci.scm | 2 +- gnu/services/containers.scm | 6 ++++-- gnu/services/cups.scm | 2 +- gnu/services/databases.scm | 2 +- gnu/services/desktop.scm | 10 +++++----- gnu/services/dns.scm | 4 ++-- gnu/services/docker.scm | 4 +++- gnu/services/file-sharing.scm | 2 +- gnu/services/games.scm | 4 ++-- gnu/services/guix.scm | 12 ++++++------ gnu/services/ldap.scm | 2 +- gnu/services/linux.scm | 4 ++-- gnu/services/mail.scm | 8 ++++---- gnu/services/monitoring.scm | 4 ++-- gnu/services/networking.scm | 8 ++++---- gnu/services/nfs.scm | 6 +++--- gnu/services/pm.scm | 1 + gnu/services/rsync.scm | 1 + gnu/services/samba.scm | 10 +++++----- gnu/services/security-token.scm | 2 +- gnu/services/sound.scm | 2 +- gnu/services/spice.scm | 2 +- gnu/services/ssh.scm | 11 +++++++---- gnu/services/telephony.scm | 6 +++--- gnu/services/version-control.scm | 2 +- gnu/services/virtualization.scm | 1 + gnu/services/vnc.scm | 2 +- gnu/services/vpn.scm | 4 ++-- gnu/services/web.scm | 22 ++++++++++++---------- 32 files changed, 83 insertions(+), 70 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 83ba0f32923..1bfe76f016d 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -29519,7 +29519,7 @@ Mail Services @item @code{skip-template?} (default: @code{#f}) (type: boolean) Do not apply Jinja templates. -@item @code{shepherd-requirements} (default: @code{(loopback)}) (type: list-of-symbols) +@item @code{shepherd-requirements} (default: @code{(user-processes loopback)}) (type: list-of-symbols) This is a list of symbols naming Shepherd services that this service will depend on. diff --git a/gnu/services/auditd.scm b/gnu/services/auditd.scm index abde811f51f..7c6c87a060c 100644 --- a/gnu/services/auditd.scm +++ b/gnu/services/auditd.scm @@ -56,6 +56,7 @@ (define (auditd-shepherd-service config) (list (shepherd-service (documentation "Auditd allows you to audit file system accesses and process execution.") (provision '(auditd)) + (requirement '(user-processes)) (start #~(make-forkexec-constructor (list (string-append #$audit "/sbin/auditd") "-c" #$configuration-directory) #:pid-file "/var/run/auditd.pid")) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 0cd4d3e9cd0..2ff9bee4a79 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -721,7 +721,7 @@ (define rngd-service-type (shepherd-service (documentation "Add TRNG to entropy pool.") - (requirement '(udev)) + (requirement '(user-processes udev)) (provision '(trng)) (start #~(make-forkexec-constructor '#$rngd-command)) (stop #~(make-kill-destructor)))) @@ -2791,7 +2791,7 @@ (define (gpm-shepherd-service config) (match-record config (gpm options) (list (shepherd-service - (requirement '(udev)) + (requirement '(user-processes udev)) (provision '(gpm)) ;; 'gpm' runs in the background and sets a PID file. ;; Note that it requires running as "root". diff --git a/gnu/services/ci.scm b/gnu/services/ci.scm index 01cc7c7d860..d0363595a20 100644 --- a/gnu/services/ci.scm +++ b/gnu/services/ci.scm @@ -79,7 +79,7 @@ (define laminar-shepherd-service (list (shepherd-service (documentation "Run Laminar.") (provision '(laminar)) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list #$(file-append laminar "/sbin/laminard")) #:environment-variables diff --git a/gnu/services/containers.scm b/gnu/services/containers.scm index 19d35ccbcb6..b3cd109ce6c 100644 --- a/gnu/services/containers.scm +++ b/gnu/services/containers.scm @@ -153,7 +153,8 @@ (define (cgroups-fs-owner-entrypoint config) (define (rootless-podman-cgroups-fs-owner-service config) (shepherd-service (provision '(cgroups2-fs-owner)) (requirement - '(dbus-system + '(user-processes + dbus-system elogind file-system-/sys/fs/cgroup networking @@ -180,7 +181,8 @@ (define cgroups-limits-entrypoint (define (rootless-podman-cgroups-limits-service config) (shepherd-service (provision '(cgroups2-limits)) (requirement - '(dbus-system + '(user-processes + dbus-system elogind networking udev diff --git a/gnu/services/cups.scm b/gnu/services/cups.scm index d95c38b4d91..738bb7f5cc3 100644 --- a/gnu/services/cups.scm +++ b/gnu/services/cups.scm @@ -1008,7 +1008,7 @@ (define (cups-shepherd-service config) (list (shepherd-service (documentation "Run the CUPS print server.") (provision '(cups)) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list (string-append #$cups "/sbin/cupsd") "-f" "-c" #$cupsd.conf "-s" #$cups-files.conf))) diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm index 6530c6f0a12..6d80376d90d 100644 --- a/gnu/services/databases.scm +++ b/gnu/services/databases.scm @@ -443,7 +443,7 @@ (define (postgresql-role-shepherd-service config) (match-record config (log) (list (shepherd-service - (requirement '(postgres)) + (requirement '(user-processes postgres)) (provision '(postgres-roles)) (one-shot? #t) (start diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 708034f89c4..ee05bd98db9 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -304,7 +304,7 @@ (define (upower-shepherd-service config) (list (shepherd-service (documentation "Run the UPower power and battery monitor.") (provision '(upower-daemon)) - (requirement '(dbus-system udev)) + (requirement '(user-processes dbus-system udev)) (start #~(make-forkexec-constructor (list (string-append #$upower "/libexec/upowerd")) @@ -859,7 +859,7 @@ (define (bluetooth-shepherd-service config) "Return a shepherd service for @command{bluetoothd}." (shepherd-service (provision '(bluetooth)) - (requirement '(dbus-system udev)) + (requirement '(user-processes dbus-system udev)) (documentation "Run the bluetoothd daemon.") (start #~(make-forkexec-constructor (list #$(file-append (bluetooth-configuration-bluez config) @@ -1303,7 +1303,7 @@ (define (elogind-shepherd-service config) (elogind-configuration-file config)) (list (shepherd-service - (requirement '(dbus-system)) + (requirement '(user-processes dbus-system)) (provision '(elogind)) (start #~(make-forkexec-constructor (list #$(file-append (elogind-package config) @@ -1953,7 +1953,7 @@ (define inputattach-shepherd-service device)))) (list (shepherd-service (provision '(inputattach)) - (requirement '(udev)) + (requirement '(user-processes udev)) (documentation "inputattach daemon") (start #~(make-forkexec-constructor (cons (string-append #$inputattach @@ -2067,7 +2067,7 @@ (define-record-type* seatd-configuration (define (seatd-shepherd-service config) (list (shepherd-service (documentation "Minimal seat management daemon") - (requirement '()) + (requirement '(user-processes)) ;; TODO: once cgroups is separate dependency ;; here we should depend on it rather than elogind (provision '(seatd elogind)) diff --git a/gnu/services/dns.scm b/gnu/services/dns.scm index dcfb90235c1..05291eb65d9 100644 --- a/gnu/services/dns.scm +++ b/gnu/services/dns.scm @@ -700,7 +700,7 @@ (define knot-resolver-shepherd-services (list (shepherd-service (provision '(kresd)) - (requirement '(networking)) + (requirement '(user-processes networking)) (documentation "Run the Knot Resolver daemon.") (start #~(make-forkexec-constructor '(#$(file-append package "/sbin/kresd") @@ -816,7 +816,7 @@ (define (dnsmasq-shepherd-service config) tftp-root tftp-unique-root extra-options) (shepherd-service (provision (dnsmasq-provision config)) - (requirement '(networking)) + (requirement '(user-processes networking)) (documentation "Run the dnsmasq DNS server.") (start #~(make-forkexec-constructor (list diff --git a/gnu/services/docker.scm b/gnu/services/docker.scm index 5837784c7f1..9ab3e583345 100644 --- a/gnu/services/docker.scm +++ b/gnu/services/docker.scm @@ -157,6 +157,7 @@ (define (containerd-shepherd-service config) (shepherd-service (documentation "containerd daemon.") (provision '(containerd)) + (requirement '(user-processes)) (start #~(make-forkexec-constructor (list (string-append #$containerd "/bin/containerd") #$@(if debug? @@ -195,7 +196,8 @@ (define (docker-shepherd-service config) (shepherd-service (documentation "Docker daemon.") (provision '(dockerd)) - (requirement '(containerd + (requirement '(user-processes + containerd dbus-system elogind file-system-/sys/fs/cgroup diff --git a/gnu/services/file-sharing.scm b/gnu/services/file-sharing.scm index 4b6867bc070..d0e9a8ca901 100644 --- a/gnu/services/file-sharing.scm +++ b/gnu/services/file-sharing.scm @@ -635,7 +635,7 @@ (define (transmission-daemon-shepherd-service config) (list (shepherd-service (provision '(transmission-daemon transmission bittorrent)) - (requirement '(networking)) + (requirement '(user-processes networking)) (documentation "Share files using the BitTorrent protocol.") (start #~(make-forkexec-constructor '(#$(file-append transmission "/bin/transmission-daemon") diff --git a/gnu/services/games.scm b/gnu/services/games.scm index 2557b82bec7..cea442fd3ae 100644 --- a/gnu/services/games.scm +++ b/gnu/services/games.scm @@ -53,7 +53,7 @@ (define (joycond-shepherd-service config) (list (shepherd-service (documentation "Run joycond.") (provision '(joycond)) - (requirement '(bluetooth)) + (requirement '(user-processes bluetooth)) (start #~(make-forkexec-constructor (list #$(file-append joycond "/bin/joycond")))) (stop #~(make-kill-destructor)))))) @@ -109,7 +109,7 @@ (define wesnothd-shepherd-service (shepherd-service (documentation "The Battle for Wesnoth server") (provision '(wesnoth-daemon)) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list #$wesnothd "-p" #$(number->string port)) #:user "wesnothd" #:group "wesnothd")) diff --git a/gnu/services/guix.scm b/gnu/services/guix.scm index 86a1e1bf52f..24d22a7a3d1 100644 --- a/gnu/services/guix.scm +++ b/gnu/services/guix.scm @@ -334,7 +334,7 @@ (define (guix-build-coordinator-shepherd-services config) (shepherd-service (documentation "Guix Build Coordinator") (provision '(guix-build-coordinator)) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(lambda args (parameterize ((%current-logfile-date-format "")) (apply @@ -585,7 +585,7 @@ (define (guix-data-service-shepherd-services config) (shepherd-service (documentation "Guix Data Service web server") (provision '(guix-data-service)) - (requirement '(postgres networking)) + (requirement '(user-processes postgres networking)) (start #~(make-forkexec-constructor (list #$(file-append package "/bin/guix-data-service") @@ -612,7 +612,7 @@ (define (guix-data-service-shepherd-services config) (shepherd-service (documentation "Guix Data Service setup database") (provision '(guix-data-service-setup-database)) - (requirement '(postgres)) + (requirement '(user-processes postgres)) (one-shot? #t) (start (with-extensions (cons package @@ -647,7 +647,7 @@ (define (guix-data-service-shepherd-services config) (shepherd-service (documentation "Guix Data Service process jobs") (provision '(guix-data-service-process-jobs)) - (requirement '(postgres networking)) + (requirement '(user-processes postgres networking)) (start #~(make-forkexec-constructor (list #$(file-append package @@ -923,7 +923,7 @@ (define (nar-herder-shepherd-services config) (shepherd-service (documentation "Nar Herder") (provision '(nar-herder)) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list #$(file-append package "/bin/nar-herder") @@ -1097,7 +1097,7 @@ (define (bffe-shepherd-services config) (shepherd-service (documentation "Build Farm Front-end") (provision '(bffe)) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list #$start-script) #:user #$user diff --git a/gnu/services/ldap.scm b/gnu/services/ldap.scm index 49a33fac086..76f9b14a412 100644 --- a/gnu/services/ldap.scm +++ b/gnu/services/ldap.scm @@ -229,7 +229,7 @@ (define (directory-server-shepherd-service config) (documentation "Run an 389 directory server instance.") (provision (list (symbol-append 'directory-server- (string->symbol instance-name)))) - (requirement '()) + (requirement '(user-processes)) (start #~(make-forkexec-constructor (list #$(file-append 389-ds-base "/sbin/dsctl") #$instance-name "start") diff --git a/gnu/services/linux.scm b/gnu/services/linux.scm index fb089b965f8..b22dbeefa03 100644 --- a/gnu/services/linux.scm +++ b/gnu/services/linux.scm @@ -469,7 +469,7 @@ (define (cachefilesd-shepherd-service config) (shepherd-service (documentation "Run the cachefilesd daemon for FS-Cache.") (provision '(cachefilesd)) - (requirement (append '(file-systems) + (requirement (append '(user-processes file-systems) (if use-syslog? '(syslogd) '()))) (start #~(begin (and=> #$(maybe-value cache-directory) mkdir-p) @@ -523,7 +523,7 @@ (define (rasdaemon-shepherd-service config) (shepherd-service (documentation "Run rasdaemon") (provision '(rasdaemon)) - (requirement '(syslogd)) + (requirement '(user-processes syslogd)) (start #~(make-forkexec-constructor '#$(rasdaemon-configuration->command-line-args config))) (stop #~(make-kill-destructor)))) diff --git a/gnu/services/mail.scm b/gnu/services/mail.scm index 18b482272c7..4ab0d681348 100644 --- a/gnu/services/mail.scm +++ b/gnu/services/mail.scm @@ -1600,7 +1600,7 @@ (define (dovecot-shepherd-service config) (list (shepherd-service (documentation "Run the Dovecot POP3/IMAP mail server.") (provision '(dovecot)) - (requirement '(pam networking)) + (requirement '(user-processes pam networking)) (start #~(make-forkexec-constructor (list (string-append #$dovecot "/sbin/dovecot") "-F"))) @@ -1903,7 +1903,7 @@ (define imap4d-shepherd-service (($ package config-file) (list (shepherd-service (provision '(imap4d)) - (requirement '(networking syslogd)) + (requirement '(user-processes networking syslogd)) (documentation "Run the imap4d daemon.") (start (let ((imap4d (file-append package "/sbin/imap4d"))) #~(make-forkexec-constructor @@ -2195,7 +2195,7 @@ (define (radicale-shepherd-service cfg) (list (shepherd-service (provision '(radicale)) (documentation "Run the radicale daemon.") - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list #$(file-append (radicale-configuration-package cfg) "/bin/radicale") @@ -2317,7 +2317,7 @@ (define-configuration/no-serialization rspamd-configuration (boolean #f) "Do not apply Jinja templates.") (shepherd-requirements - (list-of-symbols '(loopback)) + (list-of-symbols '(user-processes loopback)) "This is a list of symbols naming Shepherd services that this service will depend on.")) diff --git a/gnu/services/monitoring.scm b/gnu/services/monitoring.scm index 59cf4710ea4..f504c61afdf 100644 --- a/gnu/services/monitoring.scm +++ b/gnu/services/monitoring.scm @@ -196,7 +196,7 @@ (define prometheus-node-exporter-shepherd-service (shepherd-service (documentation "Prometheus node exporter.") (provision '(prometheus-node-exporter)) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list #$(file-append package "/bin/node_exporter") "--web.listen-address" #$web-listen-address @@ -630,7 +630,7 @@ (define (vnstat-shepherd-service config) (match-record config (package pid-file) (shepherd-service (documentation "Run vnstatd.") - (requirement `(networking file-systems)) + (requirement `(user-processes networking file-systems)) (provision '(vnstatd)) (start #~(make-forkexec-constructor (list #$(file-append package "/sbin/vnstatd") diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm index f7c2471535a..53840c27642 100644 --- a/gnu/services/networking.scm +++ b/gnu/services/networking.scm @@ -936,7 +936,7 @@ (define (opendht-shepherd-service config) (shepherd-service (documentation "Run an OpenDHT node.") (provision '(opendht dhtnode dhtproxy)) - (requirement '(networking syslogd)) + (requirement '(user-processes networking syslogd)) (start #~(make-forkexec-constructor (list #$@(opendht-configuration->command-line-arguments config)) #:user "opendht" @@ -2036,7 +2036,7 @@ (define (openvswitch-shepherd-service config) (stop #~(make-kill-destructor))) (shepherd-service (provision '(vswitchd)) - (requirement '(ovsdb)) + (requirement '(user-processes ovsdb)) (documentation "Run the Open vSwitch daemon.") (start #~(make-forkexec-constructor (list #$ovs-vswitchd "--pidfile") @@ -2248,7 +2248,7 @@ (define (pagekite-shepherd-service config) (shepherd-service (documentation "Run the PageKite service.") (provision '(pagekite)) - (requirement '(networking)) + (requirement '(user-processes networking)) (actions (list (shepherd-configuration-action config-file))) (start #~(make-forkexec-constructor (list #$pagekite @@ -2446,7 +2446,7 @@ (define (ipfs-shepherd-service config) ;; While IPFS is most useful when the machine is connected ;; to the network, only loopback is required for starting ;; the service. - (requirement '(loopback)) + (requirement '(user-processes loopback)) (documentation "Connect to the IPFS network") (start #~(make-forkexec-constructor #$ipfs-daemon-command diff --git a/gnu/services/nfs.scm b/gnu/services/nfs.scm index 209cde24b35..f5a1c6a44e8 100644 --- a/gnu/services/nfs.scm +++ b/gnu/services/nfs.scm @@ -74,7 +74,7 @@ (define rpcbind-service-type (shepherd-service (documentation "Start the RPC bind daemon.") - (requirement '(networking)) + (requirement '(user-processes networking)) (provision '(rpcbind-daemon)) (start #~(make-forkexec-constructor #$rpcbind-command)) @@ -164,7 +164,7 @@ (define gss-service-type (shepherd-service (documentation "Start the RPC GSS daemon.") - (requirement '(rpcbind-daemon rpc-pipefs)) + (requirement '(user-processes rpcbind-daemon rpc-pipefs)) (provision '(gss-daemon)) (start #~(make-forkexec-constructor #$gss-command)) @@ -236,7 +236,7 @@ (define idmap-service-type (shepherd-service (documentation "Start the RPC IDMAP daemon.") - (requirement '(rpcbind-daemon rpc-pipefs)) + (requirement '(user-processes rpcbind-daemon rpc-pipefs)) (provision '(idmap-daemon)) (start #~(make-forkexec-constructor #$idmap-command)) (stop #~(make-kill-destructor)))))) diff --git a/gnu/services/pm.scm b/gnu/services/pm.scm index 1978de55d47..64b64e01fb8 100644 --- a/gnu/services/pm.scm +++ b/gnu/services/pm.scm @@ -511,6 +511,7 @@ (define (thermald-shepherd-service config) (list (shepherd-service (provision '(thermald)) + (requirement '(user-processes)) (documentation "Run thermald cpu frequency scaling.") (start #~(make-forkexec-constructor '(#$(file-append (thermald-thermald config) "/sbin/thermald") diff --git a/gnu/services/rsync.scm b/gnu/services/rsync.scm index e85dd509346..4bbf2c4eff1 100644 --- a/gnu/services/rsync.scm +++ b/gnu/services/rsync.scm @@ -277,6 +277,7 @@ (define (rsync-shepherd-service config) "--config" #$config-file "--daemon"))) (list (shepherd-service (provision '(rsync)) + (requirement '(user-processes)) (documentation "Run rsync daemon.") (actions (list (shepherd-configuration-action config-file))) (start #~(if #$inetd-style? diff --git a/gnu/services/samba.scm b/gnu/services/samba.scm index dfc77785702..23d5cc45a07 100644 --- a/gnu/services/samba.scm +++ b/gnu/services/samba.scm @@ -91,7 +91,7 @@ (define (samba-samba-shepherd-service config) (list (shepherd-service (documentation "Run Samba") (provision '(samba-samba)) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list #$(file-append package "/sbin/samba") (string-append "--configfile=" #$config-file) @@ -105,7 +105,7 @@ (define (samba-nmbd-shepherd-service config) (list (shepherd-service (documentation "Run NMBD") (provision '(samba-nmbd)) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list #$(file-append package "/sbin/nmbd") (string-append "--configfile=" #$config-file) @@ -119,7 +119,7 @@ (define (samba-smbd-shepherd-service config) (list (shepherd-service (documentation "Run SMBD") (provision '(samba-smbd)) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list #$(file-append package "/sbin/smbd") (string-append "--configfile=" #$config-file) @@ -133,7 +133,7 @@ (define (samba-winbindd-shepherd-service config) (list (shepherd-service (documentation "Run Winnbindd for Name Service Switch") (provision '(samba-winbindd)) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list #$(file-append package "/sbin/winbindd") (string-append "--configfile=" #$config-file) @@ -222,7 +222,7 @@ (define (wsdd-shepherd-service config) like your local NAS device, to be found by Web Service Discovery Clients like Windows.") (provision '(wsdd)) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list #$(file-append package "/bin/wsdd") #$@(if ipv4only? diff --git a/gnu/services/security-token.scm b/gnu/services/security-token.scm index d971091e732..7d6c0e0f8da 100644 --- a/gnu/services/security-token.scm +++ b/gnu/services/security-token.scm @@ -53,7 +53,7 @@ (define pcscd-shepherd-service (shepherd-service (documentation "PC/SC Smart Card Daemon") (provision '(pcscd)) - (requirement '(syslogd)) + (requirement '(user-processes syslogd)) (start #~(lambda _ (let ((socket "/run/pcscd/pcscd.comm")) (when (file-exists? socket) diff --git a/gnu/services/sound.scm b/gnu/services/sound.scm index 20f78bb500b..fbaa55c5533 100644 --- a/gnu/services/sound.scm +++ b/gnu/services/sound.scm @@ -301,7 +301,7 @@ (define speakersafetyd-shepherd-service (shepherd-service (documentation "Run the speaker safety daemon") (provision '(speakersafetyd)) - (requirement '(udev)) + (requirement '(user-processes udev)) (start #~(make-forkexec-constructor (list #$(file-append speakersafetyd "/bin/speakersafetyd") "--config-path" #$configuration-directory diff --git a/gnu/services/spice.scm b/gnu/services/spice.scm index b8d2f8486e9..59c5c186274 100644 --- a/gnu/services/spice.scm +++ b/gnu/services/spice.scm @@ -47,7 +47,7 @@ (define (spice-vdagent-shepherd-service config) (list (shepherd-service (documentation "Spice vdagentd service") - (requirement '(dbus-system)) + (requirement '(user-processes dbus-system)) (provision '(spice-vdagentd)) (start #~(lambda args ;; spice-vdagentd supports being activated upon the client diff --git a/gnu/services/ssh.scm b/gnu/services/ssh.scm index f759c5cf6e9..12547b3c7b3 100644 --- a/gnu/services/ssh.scm +++ b/gnu/services/ssh.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2014-2019, 2022-2024 Ludovic Courtès +;;; Copyright © 2014-2019, 2022-2025 Ludovic Courtès ;;; Copyright © 2016 David Craven ;;; Copyright © 2016 Julien Lepiller ;;; Copyright © 2017 Clément Lassieur @@ -218,7 +218,8 @@ (define (lsh-shepherd-service config) interfaces))))) (define requires - `(networking + `(user-processes + networking pam ,@(if (and daemonic? (lsh-configuration-syslog-output? config)) '(syslogd) @@ -595,7 +596,7 @@ (define (openssh-shepherd-service config) ;; On the Hurd, this can only be started after pfinet is up, hence ;; the dependency on 'networking'. - (requirement '(pam syslogd loopback networking)) + (requirement '(user-processes pam syslogd loopback networking)) (provision '(ssh-daemon ssh sshd)) (start #~(if #$inetd-style? @@ -726,7 +727,8 @@ (define (dropbear-shepherd-service config) (define requires (if (dropbear-configuration-syslog-output? config) - '(networking syslogd) '(networking))) + '(user-processes networking syslogd) + '(user-processes networking))) (list (shepherd-service (documentation "Dropbear SSH server.") @@ -794,6 +796,7 @@ (define (autossh-shepherd-service config) (shepherd-service (documentation "Automatically set up ssh connections (and keep them alive).") (provision '(autossh)) + (requirement '(user-processes)) (start #~(make-forkexec-constructor (list #$(file-append autossh "/bin/autossh") #$@(autossh-configuration-ssh-options config)) diff --git a/gnu/services/telephony.scm b/gnu/services/telephony.scm index 16d109b8b1b..9926f4107de 100644 --- a/gnu/services/telephony.scm +++ b/gnu/services/telephony.scm @@ -547,7 +547,7 @@ (define (jami-shepherd-services config) ,@%default-modules)) ;; The requirement on dbus-system is to ensure other required ;; activation for D-Bus, such as a /etc/machine-id file. - (requirement '(dbus-system syslogd)) + (requirement '(user-processes dbus-system syslogd)) (start #~(lambda () (define pid @@ -580,7 +580,7 @@ (define (jami-shepherd-services config) list-banned-contacts-action enable-account-action disable-account-action)) - (requirement '(jami-dbus-session)) + (requirement '(user-processes jami-dbus-session)) (modules `((ice-9 format) (ice-9 ftw) (ice-9 match) @@ -944,7 +944,7 @@ (define (mumble-server-shepherd-service config) (list (shepherd-service (provision '(mumble-server)) (documentation "Run the Mumble server.") - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor '(#$(file-append (mumble-server-configuration-package config) "/bin/mumble-server") diff --git a/gnu/services/version-control.scm b/gnu/services/version-control.scm index 14ff0a59a6b..06b6ff224dc 100644 --- a/gnu/services/version-control.scm +++ b/gnu/services/version-control.scm @@ -136,7 +136,7 @@ (define git-daemon-shepherd-service ,@whitelist))) (list (shepherd-service (documentation "Run the git-daemon.") - (requirement '(networking)) + (requirement '(user-processes networking)) (provision '(git-daemon)) (start #~(make-forkexec-constructor '#$command #:user "git-daemon" diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm index b697ae95269..88cc91bb490 100644 --- a/gnu/services/virtualization.scm +++ b/gnu/services/virtualization.scm @@ -573,6 +573,7 @@ (define (virtlogd-shepherd-service config) (list (shepherd-service (documentation "Run the virtlog daemon.") (provision '(virtlogd)) + (requirement '(user-processes)) (start #~(make-forkexec-constructor (list (string-append #$libvirt "/sbin/virtlogd") "-f" #$config-file))) diff --git a/gnu/services/vnc.scm b/gnu/services/vnc.scm index 8b9ad0b1799..0b18830d2b5 100644 --- a/gnu/services/vnc.scm +++ b/gnu/services/vnc.scm @@ -206,7 +206,7 @@ (define (xvnc-shepherd-service config) (shepherd-service (provision '(xvnc vncserver)) (documentation "Run the Xvnc server.") - (requirement '(networking syslogd)) + (requirement '(user-processes networking syslogd)) (start (if (xvnc-configuration-inetd? config) #~(let* ((inaddr (if #$(xvnc-configuration-localhost? config) INADDR_LOOPBACK diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm index 8e90032c93f..c66622ad6c9 100644 --- a/gnu/services/vpn.scm +++ b/gnu/services/vpn.scm @@ -506,7 +506,7 @@ (define (openvpn-shepherd-service role) (provision (match role ('server '(vpn-server)) ('client '(vpn-client)))) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list (string-append #$openvpn "/sbin/openvpn") "--writepid" #$pid-file "--config" #$config-file @@ -693,7 +693,7 @@ (define (strongswan-shepherd-service config) (let* ((ipsec (file-append strongswan "/sbin/ipsec")) (strongswan-conf-path (strongswan-configuration-file config))) (list (shepherd-service - (requirement '(networking)) + (requirement '(user-processes networking)) (provision '(ipsec)) (start #~(make-forkexec-constructor (list #$ipsec "start" "--nofork") diff --git a/gnu/services/web.scm b/gnu/services/web.scm index d42ef09c3c0..7593cd2eaa1 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm @@ -471,7 +471,7 @@ (define httpd-shepherd-services (list (shepherd-service (provision '(httpd)) (documentation "The Apache HTTP Server") - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor `(#$(file-append package "/bin/httpd") #$@(if config @@ -960,7 +960,7 @@ (define fcgiwrap-shepherd-service (list (shepherd-service (provision '(fcgiwrap)) (documentation "Run the fcgiwrap daemon.") - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor '(#$(file-append package "/sbin/fcgiwrap") "-s" #$socket) @@ -1144,7 +1144,7 @@ (define php-fpm-shepherd-service (list (shepherd-service (provision '(php-fpm)) (documentation "Run the php-fpm daemon.") - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor '(#$(file-append php "/sbin/php-fpm") "--fpm-config" @@ -1289,7 +1289,7 @@ (define (hpcguix-web-shepherd-service config) (shepherd-service (documentation "hpcguix-web daemon") (provision '(hpcguix-web)) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list #$(file-append hpcguix-web "/bin/hpcguix-web") (string-append "--listen=" @@ -1426,6 +1426,7 @@ (define tailon-shepherd-service (($ config-file package) (list (shepherd-service (provision '(tailon)) + (requirement '(user-processes)) (documentation "Run the tailon daemon.") (start #~(make-forkexec-constructor `(,(string-append #$package "/bin/tailon") @@ -1618,7 +1619,7 @@ (define varnish-shepherd-service (provision (list (symbol-append 'varnish- (string->symbol name)))) (documentation (string-append "The Varnish Web Accelerator" " (" name ")")) - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor (list #$(file-append package "/sbin/varnishd") "-n" #$name @@ -1678,6 +1679,7 @@ (define (whoogle-shepherd-service config) (list (shepherd-service (provision '(whoogle-search)) + (requirement '(user-processes)) (start #~(make-forkexec-constructor (list (string-append #$package "/bin/whoogle-search") "--host" #$host "--port" #$(number->string port)) @@ -2066,7 +2068,7 @@ (define (mumi-shepherd-services config) (list (shepherd-service (provision '(mumi)) (documentation "Mumi bug-tracking web interface.") - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor `(#$(file-append mumi "/bin/mumi") "web" ,@(if #$mailer? '() '("--disable-mailer"))) @@ -2077,7 +2079,7 @@ (define (mumi-shepherd-services config) (shepherd-service (provision '(mumi-worker)) (documentation "Mumi bug-tracking web interface database worker.") - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor '(#$(file-append mumi "/bin/mumi") "worker") #:environment-variables #$environment @@ -2087,7 +2089,7 @@ (define (mumi-shepherd-services config) (shepherd-service (provision '(mumi-mailer)) (documentation "Mumi bug-tracking web interface mailer.") - (requirement '(networking)) + (requirement '(user-processes networking)) (start #~(make-forkexec-constructor `(#$(file-append mumi "/bin/mumi") "mailer" ,@(if #$sender @@ -2142,7 +2144,7 @@ (define gmnisrv-shepherd-service (($ package config-file) (list (shepherd-service (provision '(gmnisrv)) - (requirement '(networking)) + (requirement '(user-processes networking)) (documentation "Run the gmnisrv Gemini server.") (start (let ((gmnisrv (file-append package "/bin/gmnisrv"))) #~(make-forkexec-constructor @@ -2231,7 +2233,7 @@ (define agate-shepherd-service log-ip? user group log-file) (list (shepherd-service (provision '(agate)) - (requirement '(networking)) + (requirement '(user-processes networking)) (documentation "Run the agate Gemini server.") (start (let ((agate (file-append package "/bin/agate"))) #~(make-forkexec-constructor base-commit: 90aa90eb05429553402e0b5225d23f84742a9286 -- 2.48.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 22 17:24:45 2025 Received: (at 76338) by debbugs.gnu.org; 22 Feb 2025 22:24:45 +0000 Received: from localhost ([127.0.0.1]:57589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlxvQ-0003CY-O2 for submit@debbugs.gnu.org; Sat, 22 Feb 2025 17:24:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48804) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tlxvN-0003C4-RY for 76338@debbugs.gnu.org; Sat, 22 Feb 2025 17:24:42 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tlxvB-0004V9-2r; Sat, 22 Feb 2025 17:24:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=8znBravV2VCii3lkZrOBqO7r5WpKQ8qpw0Mq0ueChtk=; b=mAwPutejhPkiFqQ0uYS/ Dff6t1GpC1FazjoMT/t2/HoJFnTw3iqklrchVciW+gvsdeK/i/h9QuvDzRJ6aph36obEvSrzxuTvU uYYgz8CqLkqQYjihU1o2QKc0vP6thK6+svb90GgVfqQgDK2xfEjZQyH9QVBYZREhZd268bt2kvmHP vePXfSeYtSgBtvPG6pfCNwKekKqqSjgE/phMpvSwHlx2u6sR1zg8MlLfhP/KisWsdqv3eCe1ZZms9 W7GbQrWeityrI8jjgiSEkIVbUMYjCTmJP787BwKjKOmG5/jOCr5q4s1tzPjxO+NfRk32ArVf6bplO z1GTz3mhGGMiYQ==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 76338@debbugs.gnu.org Subject: [PATCH 2/2] =?UTF-8?q?doc:=20Write=20about=20depending=20on=20the?= =?UTF-8?q?=20=E2=80=98user-processes=E2=80=99=20Shepherd=20service.?= Date: Sat, 22 Feb 2025 23:23:49 +0100 Message-ID: X-Mailer: git-send-email 2.48.1 In-Reply-To: <87r03rdiof.fsf@freakingpenguin.com> References: <87r03rdiof.fsf@freakingpenguin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Ludovic Courtès , Maxim Cournoyer Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76338 Cc: Dariqq , =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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: -3.3 (---) * doc/guix.texi (Shepherd Services): Add paragraph on ‘user-processes’. Suggested-by: Dariqq Change-Id: I76fb11779eefc90d13dbc11368ddf64f7450f5e6 --- doc/guix.texi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 1bfe76f016d..b525913c151 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -46142,6 +46142,13 @@ Shepherd Services @item @code{requirement} (default: @code{'()}) List of symbols denoting the Shepherd services this one depends on. +@cindex @code{user-processes} Shepherd service +With very few exceptions, services that start a daemon must depend at +least on the @code{user-processes} service; this ensures that these +daemons are started after all the file systems have been mounted and +that, during shutdown, they are stopped before attempting to terminate +remaining user processes. + @cindex one-shot services, for the Shepherd @item @code{one-shot?} (default: @code{#f}) Whether this service is @dfn{one-shot}. One-shot services stop immediately -- 2.48.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 22 17:30:32 2025 Received: (at 76338) by debbugs.gnu.org; 22 Feb 2025 22:30:32 +0000 Received: from localhost ([127.0.0.1]:57609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tly12-0003Zt-EH for submit@debbugs.gnu.org; Sat, 22 Feb 2025 17:30:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36698) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tly0z-0003ZZ-JD; Sat, 22 Feb 2025 17:30:30 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tly0t-0005Hg-IM; Sat, 22 Feb 2025 17:30:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=CQCV/hR38iG0/wHs6wLoMCDIgTniSpVLJmndaHh5+Bg=; b=AuhTX2LB1TqBYTRIIY+N 4Ge5ufJc5151/P7agAg3NMGA/nfQudoeqJ5dahO7n1bAdRJuueR9J31xAoXDU5uORHPb4Wo0qKAq1 5AREyOnqNIlDUjQP3XFa6/H2TxsY2zWRhFdZcl6O5w/xgU2Iy8zQhPxterIFdSWl+1H3dHsMe0/mV ch2swYyEqlaQokPBog8L52qeCUWdbvgK+xvNrMUi59x1/p/ftSI+olk1d1BBmbORTYk/4IkPOZwDf aTC+SlKocOceFGUUVNchOOsLxoY0fuISIHEEYxZLUCGe2Frhw2mwFSswOZhskEnuVkFNnMjFiS/9N DWAVexhOddIF5Q==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Dariqq Subject: Re: bug#76368: Cannot reboot when virtlogd and containerd is running? In-Reply-To: <87zfifa7u6.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Fri, 21 Feb 2025 11:52:01 +0100") References: <87frkdpzvq.fsf@gnu.org> <0e689f92-c5e9-4c3b-8ccf-846471919839@posteo.net> <87zfifa7u6.fsf@gnu.org> Date: Sat, 22 Feb 2025 23:30:09 +0100 Message-ID: <87cyf94npq.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76338 Cc: 76338@debbugs.gnu.org, Richard Sent , =?utf-8?Q?Simen_Endsj=C3=B8?= , Felix Lechner , 76368@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: -3.3 (---) Hi, Ludovic Court=C3=A8s skribis: > I found these: > > scheme@(guix scripts system search)> ,pp (map shepherd-service-provision > (append-map (lambda (services) > (remove (lambda (service) > (memq 'user-processes > (shepherd-service-requirement service))) > services)) > (map service-type-default-shepherd-services (fold-service- I=E2=80=99ve just sent a patch in this issue adding =E2=80=98user-processes= =E2=80=99 to all these + virtlogd, and another one documenting =E2=80=98user-processes=E2=80= =99 in the manual. I=E2=80=99ll apply it tomorrow if there are no objections. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 22 20:47:21 2025 Received: (at 76338) by debbugs.gnu.org; 23 Feb 2025 01:47:21 +0000 Received: from localhost ([127.0.0.1]:58275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tm15U-00072x-Vz for submit@debbugs.gnu.org; Sat, 22 Feb 2025 20:47:21 -0500 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:48180) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tm15S-00072Y-AI; Sat, 22 Feb 2025 20:47:19 -0500 Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-2fc3027c7aeso6795770a91.0; Sat, 22 Feb 2025 17:47:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740275231; x=1740880031; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7L6CV+g0fYftBVgzQXg6/7w5UlS4IBSbgfLFctU/njQ=; b=J1LyYlWASgOO53KEARiF0DrtDzP+OyPI9ZbHJb6OkkHllRp/Uv4krC1Jtt40rMssj9 m8gYB6YATpVwIEStaQbgBEJ4nSkE9l90H3A5A9RuzGrSNbPWMhCYSQ555JCgWQhIfCUt SvLloms0GXs06KRtMyM4KMK9dBC3hWNdOtB6O2GFPCSlrHfeb2ZY/OJ52vLwsWAV3dS2 0PhJN4vDh9e/E9D/Qa8Ru+bwbwsYodnsKbUlKk18ErkR4uMq2GD99DrloUDwdI6rJ04p 0xhBBKRvHauInkEZ4YLOJw+xhMF31I7XcTeBEYEbDw21PhYVn+svgjl0ROZCW3q5yUa8 qrKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740275231; x=1740880031; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=7L6CV+g0fYftBVgzQXg6/7w5UlS4IBSbgfLFctU/njQ=; b=AdHx7eA7n9GjHlCeeSlC0i5Z2+xFDb7bos9HeinIJIJije95hLKc33oODStefMc0vu DBWZGV85xJRWJUW2kgHs3hQf7iUNzHAk7mviNblYO+GCTZ+KOo2QiAmsqGijk0RpU125 WNiHaJATiF+82pIs8+fPqN8g1V0pFwUhLl+Qbpxp7AM6DRjMKq9DbtvS1eCwaQzk3G+f qKV8qdz9fcBn/g16bs3O18XDVNqqeZuaa4L6ZOf3ZYm5I7DdcXwGJDCYGY4PEnLQ3/vm ezfE/aTGFHgYPNfw6ooK87W0BnGHL7kFZlbEqQgX/7WwhgJDA85DErPMLLc/PhsIqdD8 qYrQ== X-Forwarded-Encrypted: i=1; AJvYcCU2Vauj30y2jxBdJGAfmOpdcufJeoxNmLa1nmpqfuMS8AF9jE18eClnQHLfa5zm5J0fnHK/cw==@debbugs.gnu.org, AJvYcCXL45m9k/pFItxCTEKv5vV42dj9LlPonu/bk+JIFtchJGUQzbT2wdcZ+v2c1pmSe1zdLZsWBU8=@debbugs.gnu.org X-Gm-Message-State: AOJu0YzQLooLRgm/eqp4ZTq9JQxlRXaNFE+Vq4cmJUEeOtgMTbk1eeor g+xt2aob1ywNTYgSxZ8LVFR5u9qXeMw6Qf2nFfsIwBXeZkS+tfb9ke+InJb2fgA= X-Gm-Gg: ASbGnctwRxDZr+iHhxRT8JSDwSvwt71NFgKZPNVqUGz6e2Zzwm+0/QJEt2miFnlSof2 Z5Y5e++goKRTwEH1vU+xCOMdms8nNBIuVeSDRSbRSurnxefjys8IFF+KcPumc90/Ot+Y2Z8u0DF Sxn8lphRfCV0Jimlz+hsRG2UooT6K3WBNo0kqarK6FM5DAIEEReaHUyoQd6PHWElaw6yQlBDcei v5obE3M7fjeR3DMZdnjUVo2yfOb3UVGN6MbHL+1U+tiZYx6uxfFRH3c/kpWF7AM0H9LZ0lE+PX6 ot+Aw9xsLH/k1VoARJZC/6WM X-Google-Smtp-Source: AGHT+IEhV4/3ouwUHF0O8FOtE/o01oKGCHVmB8TRYiec7d5k4mDSrZfDVUR2J5ltuV0v/ET/PV/izQ== X-Received: by 2002:a05:6a20:3d96:b0:1ee:e24d:8fe3 with SMTP id adf61e73a8af0-1eef52d992emr13724040637.10.1740275231198; Sat, 22 Feb 2025 17:47:11 -0800 (PST) Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-adc746d1079sm15001119a12.68.2025.02.22.17.47.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Feb 2025 17:47:10 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#76368: Cannot reboot when virtlogd and containerd is running? In-Reply-To: <87frkdpzvq.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sun, 16 Feb 2025 18:23:37 +0100") References: <87frkdpzvq.fsf@gnu.org> Date: Sun, 23 Feb 2025 10:46:57 +0900 Message-ID: <87r03pqvou.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76338 Cc: Dariqq , 76338@debbugs.gnu.org, 76368@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: -1.0 (-) Hi Ludovic, Ludovic Court=C3=A8s writes: > Hi, > > Dariqq skribis: > >> The issue is that thermald (and possibly other services) don't depend >> on user-processes service. Don't know why I had no problems until now. > > This should be fixed: they should all depend on =E2=80=98user-processes= =E2=80=99. I was wondering if this shouldn't be part of an implicit default %shepherd-= default-requires that could be overridden if needed... but I think even in systemd land you must explicitly specify wanted using e.g. 'WantedBy=3Dmulti-user.target' in your systemd unit definition, so I guess it's fine that it must be explicitly specified. It'd be nice though, that in the case where it's missing, if it didn't cause a hang upon shutdown. I don't think anything should be able to hang the system when calling 'shutdown', no matter what (perhaps there count be some timeout... with a warning like: --8<---------------cut here---------------start------------->8--- waiting for service X to terminate... [internal timeout, perhaps defaulting to 60 s or so] service X forcefully terminated hint: perhaps X should require the `user-processes' service? --8<---------------cut here---------------end--------------->8--- If the reason of the hang could be inferred with reasonable certitude from shepherd's side, even better, though I haven't thought how that could be done. LGTM for the two patches you've sent so far! Thank you. --=20 Maxim From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 16:52:40 2025 Received: (at 76338) by debbugs.gnu.org; 23 Feb 2025 21:52:40 +0000 Received: from localhost ([127.0.0.1]:37099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tmJtv-0000tv-MU for submit@debbugs.gnu.org; Sun, 23 Feb 2025 16:52:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41138) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tmJtZ-0000t8-Bc; Sun, 23 Feb 2025 16:52:18 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tmJtT-0002ku-GQ; Sun, 23 Feb 2025 16:52:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=xYbYzWhqqS4SsMTOOZUF/O9hsswkNG2R+sqtYPXZVvo=; b=FA0vfj65QdGVAd4dtXL0 oN1e4zdBRWo5DG9wgeQvGWcDdVedzuDs8tw07IncbeUuFt5FH+wDRaVnjCAyVlPfUpD/Cvh2Lw8pY 25Wh0B+HNuOzintX6d3VS03W/Beni/gu9hR4TK1E2rEulOLybBGwO0UG3eyxCeZ7ae/lEKH6qR+6b QBRrmECIvPQ+G1wvPuPjWNeLnvg3HFm1o0ABkXl5UXEkhvZmiYSMTqIPhEhsfRKgyGXK/0atqunmh z5iEAH5LqQzUHj+7yBzYNXYPsieUGz1yBe/D0odvzqhn8ktK7vSRLI37sqBbRY0VLNNHjqheMJTAd flN4jNjL0sCoBw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#76368: Cannot reboot when virtlogd and containerd is running? In-Reply-To: <87r03pqvou.fsf_-_@gmail.com> (Maxim Cournoyer's message of "Sun, 23 Feb 2025 10:46:57 +0900") References: <87frkdpzvq.fsf@gnu.org> <87r03pqvou.fsf_-_@gmail.com> Date: Sun, 23 Feb 2025 22:51:49 +0100 Message-ID: <875xl0wcqy.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76338 Cc: Dariqq , 76338@debbugs.gnu.org, 76368@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: -3.3 (---) Hi Maxim, Maxim Cournoyer skribis: > I was wondering if this shouldn't be part of an implicit default %shepher= d-default-requires that > could be overridden if needed... but I think even in systemd land you > must explicitly specify wanted using e.g. 'WantedBy=3Dmulti-user.target' > in your systemd unit definition, so I guess it's fine that it must be > explicitly specified. I almost changed the default value of =E2=80=98requirement=E2=80=99 to '(us= er-processes) in , but then I thought this would need more testing and discussion: surely there are places in Guix and in code/config out there that relies on the current default value. > It'd be nice though, that in the case where it's missing, if it didn't > cause a hang upon shutdown. I don't think anything should be able to > hang the system when calling 'shutdown', no matter what (perhaps there > count be some timeout... with a warning like: Even better: I think shepherd just shouldn=E2=80=99t try to respawn anything while it=E2=80=99s shutting down. Not depending on =E2=80=98user-processes=E2=80=99 could still cause problem= s such as =E2=80=9Cdevice or resource busy=E2=80=9D when trying to unmount file syste= ms, but at least it would lead to that infinite loop. Thanks for your feedback, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 18:05:31 2025 Received: (at 76338-done) by debbugs.gnu.org; 23 Feb 2025 23:05:31 +0000 Received: from localhost ([127.0.0.1]:37307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tmL2Q-0007PG-B7 for submit@debbugs.gnu.org; Sun, 23 Feb 2025 18:05:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45498) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tmL1t-0007I4-7S; Sun, 23 Feb 2025 18:04:58 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tmL1l-0002sl-I0; Sun, 23 Feb 2025 18:04:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=kCpI9K636nhpm27qww8i3KafAdi4RTM8K+52lfBm8JM=; b=HoVVT4pGCIp3wveV4iNS LMS/+NutcakpqcDnZcnyon24XNOH4f7LTzZBb6t0Lp3bbU4xgNTkV1x7KoHxDWlRkxmUC5p0cm8J5 ULYActq9xblbx+TqoTnZRuCtwnXVXGHeyXa+/vi5Sd69/6y+7vL8uDBz2G7UbGT8odT3Xr/mAdzYg jau9tcra9GkIJ9VMIw44Hmh0CWeP6y8CWHohgvmfdRbBcrMJuwyWSvpO0sDRZrfGR6WzN03Aq6+2Q oQ7bqAJLRE1evK0tLUGHbkIWKDuF/6/Px35zCMrwDG82BIcTiaFtD5Vwal7pp7SbCt/Y2Ppb8uxPy Dct4SsX+PZ9nUQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Dariqq Subject: Re: bug#76368: Cannot reboot when virtlogd and containerd is running? In-Reply-To: <87cyf94npq.fsf_-_@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s?= =?utf-8?Q?=22's?= message of "Sat, 22 Feb 2025 23:30:09 +0100") References: <87frkdpzvq.fsf@gnu.org> <0e689f92-c5e9-4c3b-8ccf-846471919839@posteo.net> <87zfifa7u6.fsf@gnu.org> <87cyf94npq.fsf_-_@gnu.org> Date: Mon, 24 Feb 2025 00:04:45 +0100 Message-ID: <87r03otg8i.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76338-done Cc: 76338-done@debbugs.gnu.org, Richard Sent , Simen =?utf-8?Q?Endsj=C3=B8?= , Felix Lechner , 76368@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: -3.3 (---) Ludovic Court=C3=A8s skribis: > I=E2=80=99ve just sent a patch in this issue adding =E2=80=98user-process= es=E2=80=99 to all > these + virtlogd, and another one documenting =E2=80=98user-processes=E2= =80=99 in the > manual. > > I=E2=80=99ll apply it tomorrow if there are no objections. Pushed: bcb772d7d00 doc: Write about depending on the =E2=80=98user-processes=E2= =80=99 Shepherd service. bd7b9e6a601 services: Add missing Shepherd dependency on =E2=80=98user-pr= ocesses=E2=80=99. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 24 06:00:20 2025 Received: (at 76338) by debbugs.gnu.org; 24 Feb 2025 11:00:20 +0000 Received: from localhost ([127.0.0.1]:38670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tmWCC-0001Yd-Bi for submit@debbugs.gnu.org; Mon, 24 Feb 2025 06:00:20 -0500 Received: from mout01.posteo.de ([185.67.36.65]:55059) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tmWC7-0001WE-Ft for 76338@debbugs.gnu.org; Mon, 24 Feb 2025 06:00:19 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 27CB2240028 for <76338@debbugs.gnu.org>; Mon, 24 Feb 2025 12:00:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1740394808; bh=AZLe9wdRSwJ35HfUrDiC8AvB7fa5Q0uNBm1pL/l7uFg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:Content-Type: Content-Transfer-Encoding:From; b=VuT3CP/VzzgYK0guBoHAZf2/UutxDhH/bX4WlMtSD7CXXPD2Cd4nSTEdSv1R27u6A 1rRI6H9AGiKmhgv9YndWO6KOXlO5oB+bIIliitWOdKOd1hPZw/lFGaaBh930OKGvNO 1iFPzDU2PuyIS7kdCb7oP+pn3h0f9deu1ab5BBa1XMSR7etvL+Nbva20pWE1OKB9PG Hri2M5CDLiuUFEx6uQnuLiEw91Pr7K6L/zEH93jf78SxHwcNPDo0BSmfgKQXTEHvn7 kHNdYuGxhhPlEYBG2U6/A5h30zQUcuo+1lSLmh57Etb4Xnmr3Y2ibHOd41HEoAWT1z o1ZX/hFxvVcIA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Z1d6t1C03z6twf; Mon, 24 Feb 2025 12:00:05 +0100 (CET) Message-ID: <8644a7e0-5915-4fa0-9334-51590a1e506b@posteo.net> Date: Mon, 24 Feb 2025 10:59:43 +0000 MIME-Version: 1.0 Subject: Re: bug#76368: Cannot reboot when virtlogd and containerd is running? To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= , Maxim Cournoyer References: <87frkdpzvq.fsf@gnu.org> <87r03pqvou.fsf_-_@gmail.com> <875xl0wcqy.fsf_-_@gnu.org> Content-Language: en-US From: Dariqq In-Reply-To: <875xl0wcqy.fsf_-_@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 76338 Cc: 76338@debbugs.gnu.org, 76368@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: -4.3 (----) Hi Ludo, Thank you for the patch. On 23.02.25 22:51, Ludovic Courtès wrote: > Hi Maxim, > > Maxim Cournoyer skribis: > >> I was wondering if this shouldn't be part of an implicit default %shepherd-default-requires that >> could be overridden if needed... but I think even in systemd land you >> must explicitly specify wanted using e.g. 'WantedBy=multi-user.target' >> in your systemd unit definition, so I guess it's fine that it must be >> explicitly specified. > > I almost changed the default value of ‘requirement’ to '(user-processes) > in , but then I thought this would need more testing > and discussion: surely there are places in Guix and in code/config out > there that relies on the current default value. > I don't think this would have been a good change: - It breaks services that correctly don't depend on user-processes, i.e. filesystem mounts - It breaks every home-services that (correctly) depends on nothing but the home-shepherd . - It creates a (non obvious) discrepancy between the shepherd service API and the Guix layer on top Imo ideally all services would expose their shepherd requirements (and service-autostart, extra daemon args, daemon-environment, extra actions, ...) in the configuration records which would allows users to workaround such a problem themselves. The current system depends on whether the author of the service added it, feels a bit arbitrary and is not flexible if a setting one would like to adjust is not configurable. (i am guilty of this as well for the service i contributed to guix) But this for a discussion at another time. > Thanks for your feedback, > Ludo’. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 26 17:26:37 2025 Received: (at 76338) by debbugs.gnu.org; 26 Feb 2025 22:26:37 +0000 Received: from localhost ([127.0.0.1]:55936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tnPrR-0007bR-Ay for submit@debbugs.gnu.org; Wed, 26 Feb 2025 17:26:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35306) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tnPrO-0007bB-RP for 76338@debbugs.gnu.org; Wed, 26 Feb 2025 17:26:35 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tnPrI-0006g5-4t; Wed, 26 Feb 2025 17:26:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=NgE+BnJ2ck/6dlhb+n3smIFWGFBbYjSR8kxSIq7rLko=; b=oqSVSYb4ND/jLwYkNzV7 gGHLShbSDRmEw06zQQiGpW4cBjQtWkG+V+NLkqXT3867zQNdcr62EA7RGKHKkkkNF/Rji6Cg5VSsX ZyvjLwnvFXEFW2oXGbBMi+RspWMKnz6gxSA04jgmJnLtl5BW0dxnzua/Hr22Re/oaco35+B2asjNt ZSwleeF9rr3V00ca6GxTYanzFSBbdrG73MCqsY6UuiDUN0tNaVO9usM4X5oQGHSRXvCn0HhcydySR 2oC66IFMBSe79DjX6mwuFC8CPNGjhIKpVrb1FoybzSXv0jA32PmCIdwCSGTApEUEAH/anJDxRDDhc 1K/yzdBidmib8w==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 76338@debbugs.gnu.org Subject: Re: bug#76338: shepherd restarts service during shutdown and then waits forever In-Reply-To: ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Sat, 22 Feb 2025 23:23:48 +0100") References: <87r03rdiof.fsf@freakingpenguin.com> Date: Wed, 26 Feb 2025 23:26:21 +0100 Message-ID: <87bjuoz6k2.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76338 Cc: Dariqq , Vivien Kraus , Liliana Marie Prikler , Maxim Cournoyer 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: -3.3 (---) Ludovic Court=C3=A8s skribis: > Fixes . I followed up with a Shepherd fix to inhibit respawning when shutting down: https://git.savannah.gnu.org/cgit/shepherd.git/commit/?id=3D94c2516903ad7= 5528898616f453a9dea7fb42eb7 Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 27 09:11:29 2025 Received: (at 76338) by debbugs.gnu.org; 27 Feb 2025 14:11:29 +0000 Received: from localhost ([127.0.0.1]:60538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tnebo-0006nW-OB for submit@debbugs.gnu.org; Thu, 27 Feb 2025 09:11:29 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:48302) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tnebl-0006mq-Mr for 76338@debbugs.gnu.org; Thu, 27 Feb 2025 09:11:26 -0500 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-2212a930001so24552015ad.0 for <76338@debbugs.gnu.org>; Thu, 27 Feb 2025 06:11:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740665479; x=1741270279; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HAjexq3mjd6qMXvtqDNbxzdD9gALuZ6dwmkfG7ITnl8=; b=KwE4e4QdoGy3PJhnHxmAXTIIRUSkyYzEeivEgkfeap/R5x2Zk4rFjF1Jje3heZpVdl VIY/A8SNUVr41cNS3gQ1puwiNw/nnwGIGOIvT/AHdyI90dKDg0SigAJtWiiuhfjHBF2T FfvVi0fW5LAcdOZ/2crrGGKFe/Cd9bHxySaU3ciDOquetiCiY1YaIgtUL4Ad4sD3kVDx nyRNLYIOyjARi42+Bvxt21SkXuXm94ItpipdILeWZkcLVSCRMQjqbJxqfBAyuDMSMWGR KcO2t54t+SVrkRzvAVCelMmtLtx/G8Jh2Rj5Z558eTaAS8g5ssJ97f2b8H16ncsb/qss 6LNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740665479; x=1741270279; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=HAjexq3mjd6qMXvtqDNbxzdD9gALuZ6dwmkfG7ITnl8=; b=FpSj8+IcNC+foyz4u/I9icuo5W5Im+H+epqlrZhUR4+C3WYJzA6lT+r8YjCAwndQ4J 7UrYubmIVs7aommmiKYiLgnjFlwJDQq4XselKDmm1BE41UqD4Rr7XfLq8wAn36Rzpgju 8/eRoafxf9a/Sx6aC2f4ubzfaqoTAkgIj8/MltF0KWvZgWH0b5pAKCaSEs6Uwbxb7D8g NWXeeN7aKhB0QlKXMPHC9ron6+0I30pEyl3NHWBw1gONVekCQFHrh8HbRqa9/gFBckxB RIs9JYUUmUD7IuDDKoaDbcO4670oJvdqoigHDDSFmWrYHG8Vly0N7p6AsN2PHofrJTXK uSgQ== X-Gm-Message-State: AOJu0Yxe7g/5wofq5B1s1lE26Eqz5gjICAmMn1e/UmIO7xjVTTVON/hb fK8MfOw6GpMOBUwlA7rbokJx4mINyBhDCSPMddx3PbHbdK9jBifs X-Gm-Gg: ASbGnctFE6Vnwhrjc30Khme8ugxfqKrUytL3ueVvUaY8TuWGE7CX2rjhQkN5UNxN1r6 xfBj6fAxCXb2tMVEnH8dqmZb0+0tibapByFj7aplIfheGq69bLjZw5o3VCjeNC4E+mlmx/Prrgu Lu+Kw16l+5e4Z5xtM4GbgvvQ+Tjg5fU7SPs3FCElgrek1r0wNPJfaKm1WO7RoXkJAeLk4WRCdN5 u4v+1+a98MaJbKwu6t0Cu5rXzF+HDSDyrQS5Mzz/WhsW0jENDQgyc2X11MMXBvacjJbdS6bMKoh vNVY3wP4JLvJX/KxcF5JI5NK X-Google-Smtp-Source: AGHT+IEc2SjzPZXaBnzNsA2lrDUS5qiGqERw/eVNAUldva54LN2m/RXBDi6BKtxBdr6sFoVm1a20wQ== X-Received: by 2002:a05:6a00:4b54:b0:732:6217:8c69 with SMTP id d2e1a72fcca58-73426c94ad6mr48131820b3a.3.1740665479205; Thu, 27 Feb 2025 06:11:19 -0800 (PST) Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7349fe2b0e3sm1617991b3a.3.2025.02.27.06.11.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2025 06:11:18 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#76338: shepherd restarts service during shutdown and then waits forever In-Reply-To: <87bjuoz6k2.fsf_-_@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s?= =?utf-8?Q?=22's?= message of "Wed, 26 Feb 2025 23:26:21 +0100") References: <87r03rdiof.fsf@freakingpenguin.com> <87bjuoz6k2.fsf_-_@gnu.org> Date: Thu, 27 Feb 2025 23:11:04 +0900 Message-ID: <87wmdblbpj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76338 Cc: 76338@debbugs.gnu.org, Dariqq , Vivien Kraus , Liliana Marie Prikler 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: -1.0 (-) Hi Ludovic, Ludovic Court=C3=A8s writes: > Ludovic Court=C3=A8s skribis: > >> Fixes . > > I followed up with a Shepherd fix to inhibit respawning when shutting > down: > > https://git.savannah.gnu.org/cgit/shepherd.git/commit/?id=3D94c2516903a= d75528898616f453a9dea7fb42eb7 Yay, thanks for the hard work! --=20 Maxim From unknown Wed Jun 18 00:30:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 28 Mar 2025 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator