From unknown Mon Jun 23 06:00:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#64008 <64008@debbugs.gnu.org> To: bug#64008 <64008@debbugs.gnu.org> Subject: Status: shepherd respawns a service even when it's disabled Reply-To: bug#64008 <64008@debbugs.gnu.org> Date: Mon, 23 Jun 2025 13:00:37 +0000 retitle 64008 shepherd respawns a service even when it's disabled reassign 64008 guix submitter 64008 Attila Lendvai severity 64008 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 11 14:01:49 2023 Received: (at submit) by debbugs.gnu.org; 11 Jun 2023 18:01:49 +0000 Received: from localhost ([127.0.0.1]:37719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8PNs-0002Se-SV for submit@debbugs.gnu.org; Sun, 11 Jun 2023 14:01:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:40322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8PNr-0002SX-Gt for submit@debbugs.gnu.org; Sun, 11 Jun 2023 14:01:47 -0400 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 1q8PNr-0001Mm-BK for bug-guix@gnu.org; Sun, 11 Jun 2023 14:01:47 -0400 Received: from mail-4018.proton.ch ([185.70.40.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8PNn-0002To-R9 for bug-guix@gnu.org; Sun, 11 Jun 2023 14:01:47 -0400 Date: Sun, 11 Jun 2023 18:01:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail3; t=1686506493; x=1686765693; bh=M7yHwU7QO352lvRKqZvzvXKXWVm06clW2HYk3uVJO0c=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=eLLghXXnqryc+DVfe3OC71xCxH0410LqGhfSZxvrHNNtV8bSBvy5tT5wdDwG7JOqf zx6EHcjap00PojgwJOA/whwrfEPs7okfGHL3RxaMfPlXYbFs31OpHMwJBBz5QTuetK BsXYscwvaoC48cVM8e9PJab9zsR4ZT0gl1tEDupENqZLbsCNYxRtHzUM22TjX0wiCp nAwz3cHmV3U0nuA7aAOXaKcs0X8Mek97zYy7x0Tj2EXPfAH063fudm8ImCz1RcdJ0s FQAWUrzfoxwfx8jUKgrjHGY2GEQudNnUTmdG6oyvGgBs16uCUd8/7moXvzjfyRC4cY 6jzEhvFP5Y/YA== To: "bug-guix@gnu.org" From: Attila Lendvai Subject: shepherd respawns a service even when it's disabled Message-ID: <60Ly9jr0c-9jYUDycPQpxSk2vDqagWpaD0Vscr9LMZB83y8DO4uW0TpPMd1v1FjRIZG6-egSvxo3CwlxEn2lE1hNdb5sm3oj0xB-Hnn_OZc=@lendvai.name> Feedback-ID: 28384833:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.18; envelope-from=attila@lendvai.name; helo=mail-4018.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) the issue: i'm in a situation where my service quits after a few seconds of CPU usage = (i.e. the default-respawn-limit is not triggered). therefore shepherd keeps= restarting it, practically in a busy loop. suggested solution: maybe respawn-service should check for the disabled state, so that the admi= n can intervene by `herd disable myservice`. a longer term solution could be to add a respawn-delay field for ,= and default it to something non-zero. --=20 =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- The mind: an excellent servant, but a dangerous master. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 11 14:06:57 2023 Received: (at 64008) by debbugs.gnu.org; 11 Jun 2023 18:06:58 +0000 Received: from localhost ([127.0.0.1]:37728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8PSr-0002as-Ji for submit@debbugs.gnu.org; Sun, 11 Jun 2023 14:06:57 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:56388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8PSn-0002ab-Gv for 64008@debbugs.gnu.org; Sun, 11 Jun 2023 14:06:56 -0400 Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-30fbf6603d2so396335f8f.0 for <64008@debbugs.gnu.org>; Sun, 11 Jun 2023 11:06:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686506808; x=1689098808; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lKqECyompe8ENoM9Cp3B6OIFeLfT+dVeGDbhfpnBtBE=; b=F7PMdqN3TWN5iMcGBO3KQJOeOKpIFLaABbYcjtsiAjP4ROE8x7qCox4UfOKkUbRqC3 M5MJudiouhJB9YMh9dG2FZvTQiHdA+b4Zqj/bAK/AdjFsZgi9Xpy50AZtYYz8MXOdKCW 4gSXWFubt6xaWAnxoEHvYdrI3QRxJbKJG9ATbZaab/NHxD5Bdae0tiGymKQ3K18ttbXk VYDXcogBbPp+iOVGBq8Of1FgaxlZLoDkFy8/Ukf5llYzUXPbCbxaK6JoULKmIUIq0oGQ nbK4kBiwaEH1rWvMJs4QteCJlSzUTW0OCRPhzD9ab2ukcshS1gv8/gtLQKdB8ukdu+Zu DGDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686506808; x=1689098808; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=lKqECyompe8ENoM9Cp3B6OIFeLfT+dVeGDbhfpnBtBE=; b=WYIMpgGrNdP/7LAt+QpZBRygF1nTlZJ0OjsC4bafTAk8guGfY2WDWe24lupeR70EGn VPIInoEie9oGr1Gtm985ZtEofElIWWBZ7fZV3f9znwPmRZvEEV4IfpjOAHO6pJ+8QZv6 T+Dd+YakDe45z4WHLm4LHERNHrXlHhQ4oPekbB28RZUjwJwF3ulPdmfFJo0FOm0f3joH tmNSw+G7EG6dYu8HNOTZFGtJ7Ai8cMnDSjE0oyom4iqFV6ZjW2CzqG0dwI9qS0JEPMmC TjNCx7EnWupgvYnIQkgNO8GiEjPymVXHx69x2sjxXk7hp7fCW1buo5h45B/cgdMGdPPS QXsA== X-Gm-Message-State: AC+VfDz4c6/iLa++/SVjGcLXck1zKLkokF8OhriZi/1e9wihLB+7MLp5 a2lUOtokByt0McTHOJoi4EBgEuoq+As= X-Google-Smtp-Source: ACHHUZ67meXmBVoDciWWPfaYBKcvzetwO337a9WY3+ZHOID729pRIsAhH7u1WKmUA8E5+42tIxxGUA== X-Received: by 2002:adf:f649:0:b0:30a:9014:838d with SMTP id x9-20020adff649000000b0030a9014838dmr3349123wrp.11.1686506807618; Sun, 11 Jun 2023 11:06:47 -0700 (PDT) Received: from lelap (catv-80-98-247-145.catv.fixed.vodafone.hu. [80.98.247.145]) by smtp.gmail.com with ESMTPSA id e16-20020adffc50000000b0030fbb834074sm2526676wrs.15.2023.06.11.11.06.46 for <64008@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jun 2023 11:06:47 -0700 (PDT) From: Attila Lendvai X-Google-Original-From: Attila Lendvai To: 64008@debbugs.gnu.org Subject: Re: bug#64008: shepherd respawns a service even when it's disabled In-Reply-To: <60Ly9jr0c-9jYUDycPQpxSk2vDqagWpaD0Vscr9LMZB83y8DO4uW0TpPMd1v1FjRIZG6-egSvxo3CwlxEn2lE1hNdb5sm3oj0xB-Hnn_OZc=@lendvai.name> (Attila Lendvai's message of "Sun, 11 Jun 2023 18:01:24 +0000") References: <60Ly9jr0c-9jYUDycPQpxSk2vDqagWpaD0Vscr9LMZB83y8DO4uW0TpPMd1v1FjRIZG6-egSvxo3CwlxEn2lE1hNdb5sm3oj0xB-Hnn_OZc=@lendvai.name> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Date: Sun, 11 Jun 2023 20:06:34 +0200 Message-ID: <87edmhzxed.fsf@lendvai.name> 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: 64008 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 forgot to mention that the service is in the stopped state while this is = happening, at least according to `herd status`. --=20 =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CMost of our lives, most of us live in realities determined by othe= rs, imprinted in our brains by education, by religion, by politics, by the = authorities.=E2=80=9D =E2=80=94 Timothy Leary (1920=E2=80=931996) From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 14 12:49:54 2023 Received: (at 64008-done) by debbugs.gnu.org; 14 Jun 2023 16:49:54 +0000 Received: from localhost ([127.0.0.1]:45372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9Tgw-0003rW-G2 for submit@debbugs.gnu.org; Wed, 14 Jun 2023 12:49:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9Tgu-0003rH-84 for 64008-done@debbugs.gnu.org; Wed, 14 Jun 2023 12:49:53 -0400 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 1q9Tgo-0001G0-W5; Wed, 14 Jun 2023 12:49:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=rohm9Im6aNqv85MHcmGPA9hf9HSjU768qCnacgKIBWA=; b=e5tddL/JSFEIB2GsNIi4 nB4fW6laGMMmOiWLnt4Qshxaj+6V0dqlEgGEZIt5W9D7auiCzAuOcCcEdw+tmcFoFU5y7mLJO3UEe HteqDAv5y1UWTZJNcArJN/j7lnURoQIjnsHH7V5Y5xFXFCoCHDGL8d/CaaZvhE9y9ApYlIMCWcsWv N3J915yPGyCX1FMvPCMD5i4dgt1qVXJ1INqumSnlpMs1Tir3ZmZrpfbDemw7u0hGx51xh+Cpc12O3 BreLfGAyQzamaL2+yDzp5AQYbRH4vTsqmQ24z+f1JqKk4RNbECzVIXK6B2lUyGaQY8IL0fHNB/w36 oBhEiKrECyBvSg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9Tgo-00017Y-I9; Wed, 14 Jun 2023 12:49:46 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Attila Lendvai Subject: Re: bug#64008: shepherd respawns a service even when it's disabled References: <60Ly9jr0c-9jYUDycPQpxSk2vDqagWpaD0Vscr9LMZB83y8DO4uW0TpPMd1v1FjRIZG6-egSvxo3CwlxEn2lE1hNdb5sm3oj0xB-Hnn_OZc=@lendvai.name> Date: Wed, 14 Jun 2023 18:49:44 +0200 In-Reply-To: <60Ly9jr0c-9jYUDycPQpxSk2vDqagWpaD0Vscr9LMZB83y8DO4uW0TpPMd1v1FjRIZG6-egSvxo3CwlxEn2lE1hNdb5sm3oj0xB-Hnn_OZc=@lendvai.name> (Attila Lendvai's message of "Sun, 11 Jun 2023 18:01:24 +0000") Message-ID: <877cs6rntj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) 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: 64008-done Cc: 64008-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Attila, Attila Lendvai skribis: > i'm in a situation where my service quits after a few seconds of CPU usag= e (i.e. the default-respawn-limit is not triggered). therefore shepherd kee= ps restarting it, practically in a busy loop. > > suggested solution: > > maybe respawn-service should check for the disabled state, so that the ad= min can intervene by `herd disable myservice`. Turns out the service controller was ignoring the =E2=80=98enabled?=E2=80= =99 flag, leaving it up to the caller to check it. This is fixed by Shepherd commit 7c88d67076a0bb1d9014b3bc23ed9c68f1c702ab. Thanks again, Ludo=E2=80=99. From unknown Mon Jun 23 06:00:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 13 Jul 2023 11:24:06 +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