From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id eKE8LCPyQGfwIgAAqHPOHw:P1 (envelope-from ) for ; Fri, 22 Nov 2024 21:05:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eKE8LCPyQGfwIgAAqHPOHw (envelope-from ) for ; Fri, 22 Nov 2024 22:05:39 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lendvai.name header.s=protonmail2 header.b=XBQfOfy3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lendvai.name (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732309539; a=rsa-sha256; cv=none; b=V3LzXLDRjLycQLqBagh1TNysdTtuyRhVJoakhv5Eq/lYvevdRaGvZvcTQ8U5gL15CEQtJL mnWkFp5RFTMEniZA9ZKCo9McthkufsGcjF0m846RX3Qud8JHh15/AGer1qFexMPCNRDp9S wXl3sFA2mTL81RuSbkcw+wor/CdMkHse/Eh9VVVKQy9q3TirPXfcszyz+iq/URPisEUX7G S53aur1jH9Ql15AmbdkaWDzCqjyCFijAcvjrZKSZoLVO2T+NBN3npFLaXY210BS1DumRMp yshGd5i4VvX9uqzJZjiFG8sxQ25dj7mF/ZCWePFH6pz6rnM/0dPpluWGkkPT0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lendvai.name header.s=protonmail2 header.b=XBQfOfy3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lendvai.name (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732309539; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=HxbWPXr2W046joMPMRV3OT0WcP8pLdtNUL5fVJjm2Ls=; b=WvsopDylHqHRck6jeR8P1uliq6VQYUygMldb/QVzdxVpDvrI4QZXMX07+QPJjrAXonS/JQ dIDiUr2MTqLfrCd9kua6ycg+MG2prjYThFw+NQXpvtlSl5AM2N0DlYIAH0Xb6Y5yoHef36 B/mfSnisvxlOmivz6ou9mKU4pSa8v5XRYz4cCn+WlZSLPtW1zySbxqZwvqGn+AB1VeWqnv s+aCOwQ1S2a1n/p4wute2bq2zFt2LolHIPEc+dKiEnf8+Fl0acuflNZ3zfrL1WYFe1/pvA pJHudEa3P4LnIQKzXupAfBPW0MAqr2kZZwxDuTjxWKnLByYJFg4UXqA9BH9YEg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 129C664BED for ; Fri, 22 Nov 2024 22:05:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEaVV-0000FK-4d; Fri, 22 Nov 2024 15:44:01 -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 1tEaVT-0000FA-SB for guix-devel@gnu.org; Fri, 22 Nov 2024 15:43:59 -0500 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 1tEaVR-0005sl-FO for guix-devel@gnu.org; Fri, 22 Nov 2024 15:43:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail2; t=1732308226; x=1732567426; bh=HxbWPXr2W046joMPMRV3OT0WcP8pLdtNUL5fVJjm2Ls=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=XBQfOfy3Fkhjbu81iIvZeSUMirrQT5nHX55G250OX6Un2WR4KlH3aGM+ECouQ/aQS jhhzamhVaOBYvR8/FQE1e8sIkMwQ4iX4UL2/2BALQrNqn5CtZSAYvUsw1OWhE1BZyV T2v/7D5Nc3LAsNWy+mnrqSlsM3knz7EAFoa/sttImCYbgxpw4S1Zhgw5oVapucb6pD gm/bc2ym7gI5gUO6mEWcPJ32bdpxxd/ygtx7kIulXkLgIohR0zbweKFj7kTBCrMyV9 TViCvHuNn9y1gREIWh98u8JBP9L3sF70+VVRoNcQtpPr4waAy6ZeYzu6eB699MedqI uAGok5MKm67mg== Date: Fri, 22 Nov 2024 20:43:41 +0000 To: =?utf-8?Q?Ludovic_Court=C3=A8s?= From: Attila Lendvai Cc: guix-devel Subject: Re: shepherd: failing test: should `herd stop` stop a respawning process? Message-ID: In-Reply-To: <87bjza4mee.fsf@gnu.org> References: <87bjza4mee.fsf@gnu.org> Feedback-ID: 28384833:user:proton X-Pm-Message-ID: 6b6abaa8214347b5682cb3818d9a93105de4e830 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1=_AEsOP41zRlAR39Uv7En9U9G74r3qr3EcNBz4UpPDw" 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 1.67 X-Spam-Score: 1.67 X-Migadu-Queue-Id: 129C664BED X-Migadu-Scanner: mx12.migadu.com X-TUID: SW3hroqTYqM/ --b1=_AEsOP41zRlAR39Uv7En9U9G74r3qr3EcNBz4UpPDw Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > But I don=E2=80=99t know, there could be a bug. Could you come up with a > reduced test case (I looked at the one attached but I=E2=80=99m not sure = which > part to focus on), or do you have logs of the problem? ok, i've attached a stipped down version of the test case. it hopefully rep= roduces the same situation i'm observing on my servers. which seems to be the following: 1. i have a service that keeps respawning (typically due to a config mistake) 2. said service is upgraded/replaced in a `guix system reconfigure` 3. v1 of the service keeps respawning forever, and there's nothing i can do to stop it at this point. `herd disable` operates on v2 of the service, while some fiber, or some signal handler of v1 is still in a respawn loop. HTH, --=20 =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9COur scientific power has outrun our spiritual power. We have guide= d missiles and misguided men.=E2=80=9D =09=E2=80=94 Martin Luther King, Jr. (1929=E2=80=931968, assassinated) --b1=_AEsOP41zRlAR39Uv7En9U9G74r3qr3EcNBz4UpPDw Content-Type: application/x-shellscript; name=respawn2.sh Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=respawn2.sh IyBHTlUgU2hlcGhlcmQgLS0tIFRlc3QgcmVzcGF3bmFibGUgc2VydmljZXMuCiMgQ29weXJpZ2h0 IMKpIDIwMTMsIDIwMTQsIDIwMTYsIDIwMjMgTHVkb3ZpYyBDb3VydMOocyA8bHVkb0BnbnUub3Jn PgojCiMgVGhpcyBmaWxlIGlzIHBhcnQgb2YgdGhlIEdOVSBTaGVwaGVyZC4KIwojIFRoZSBHTlUg U2hlcGhlcmQgaXMgZnJlZSBzb2Z0d2FyZTsgeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29y IG1vZGlmeSBpdAojIHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExp Y2Vuc2UgYXMgcHVibGlzaGVkIGJ5CiMgdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbjsgZWl0 aGVyIHZlcnNpb24gMyBvZiB0aGUgTGljZW5zZSwgb3IgKGF0CiMgeW91ciBvcHRpb24pIGFueSBs YXRlciB2ZXJzaW9uLgojCiMgVGhlIEdOVSBTaGVwaGVyZCBpcyBkaXN0cmlidXRlZCBpbiB0aGUg aG9wZSB0aGF0IGl0IHdpbGwgYmUgdXNlZnVsLCBidXQKIyBXSVRIT1VUIEFOWSBXQVJSQU5UWTsg d2l0aG91dCBldmVuIHRoZSBpbXBsaWVkIHdhcnJhbnR5IG9mCiMgTUVSQ0hBTlRBQklMSVRZIG9y IEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiAgU2VlIHRoZQojIEdOVSBHZW5lcmFs IFB1YmxpYyBMaW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