From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cGx3EDHfVmFtIAEAgWs5BA (envelope-from ) for ; Fri, 01 Oct 2021 12:13:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OP8CDDHfVmHdEQAAbx9fmQ (envelope-from ) for ; Fri, 01 Oct 2021 10:13:05 +0000 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 06C0E35C14 for ; Fri, 1 Oct 2021 12:13:05 +0200 (CEST) Received: from localhost ([::1]:50596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWFXM-0000ER-4B for larch@yhetil.org; Fri, 01 Oct 2021 06:13:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWFWM-0007fb-MY for guix-patches@gnu.org; Fri, 01 Oct 2021 06:12:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWFWM-0005TL-En for guix-patches@gnu.org; Fri, 01 Oct 2021 06:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWFWM-0000Tj-7c for guix-patches@gnu.org; Fri, 01 Oct 2021 06:12:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50717] [PATCH] Shepherd: Add respawn-limit paramter to service class. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 01 Oct 2021 10:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50717 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ryan Sundberg Cc: 50717@debbugs.gnu.org Received: via spool by 50717-submit@debbugs.gnu.org id=B50717.16330830931805 (code B ref 50717); Fri, 01 Oct 2021 10:12:02 +0000 Received: (at 50717) by debbugs.gnu.org; 1 Oct 2021 10:11:33 +0000 Received: from localhost ([127.0.0.1]:54729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWFVt-0000T2-97 for submit@debbugs.gnu.org; Fri, 01 Oct 2021 06:11:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWFVr-0000Sq-0a for 50717@debbugs.gnu.org; Fri, 01 Oct 2021 06:11:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41274) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWFVl-0004to-ER; Fri, 01 Oct 2021 06:11:25 -0400 Received: from 2a01cb000492e90078753f5c96c7583f.ipv6.abo.wanadoo.fr ([2a01:cb00:492:e900:7875:3f5c:96c7:583f]:44076 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWFVj-000544-Fs; Fri, 01 Oct 2021 06:11:25 -0400 From: Mathieu Othacehe References: Date: Fri, 01 Oct 2021 10:11:20 +0000 In-Reply-To: (Ryan Sundberg's message of "Tue, 21 Sep 2021 00:42:14 -0700") Message-ID: <878rzdoy0n.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633083185; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=RupZbXSkk8S0G1gDaX/azMC+ivXuFclNP7OmyjNQu00=; b=TLey6q3H1G8C7k8h2sTo3XbaT5wQ5875SGFa5b2WtdHTBga8bsUTvX2mWlOk8q8ncIQV6c 8wtPK/SMZUE2KWcu4EvcgGbe4JI7F0eqbynqiQtZedCSCW5eiBx7IVuH+pl0PIZVlkYZHO fi1sWYZHTMUdlFq+2OhG5dOVfDH3klcaNpTdwXF0knsXPVK5KVHOldkc0/y452YIOjIAGA Rxl0bajukT2G75KjiIdTvUq5rPZqhin4v/QkkO34Hut5KUI+C9lgBOtw9T+hDtPo0UC7Gr sSrwZdUIXAxkQQmKJFqUnsGvrthV9ElTgSEfVpSBA6InNlzKAZQbc/mrutvy4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633083185; a=rsa-sha256; cv=none; b=u64dtE4ji7QCx0IGywot4YtsJG+S2HgwNJ+iwykQEN2spdGtwP/JAafUQeZT0agNEahzsJ ZKDzimdE4tn7VirYfRR8gVtRX612d0LPaxMvvoR/+CEUkYoFSj1QfVHnopTAGx6Oa0Igcl yZfgdWjyQS1beBvpM3PhZCpVQrWB2H9PwtJK43tB8IWbyvQlshyTisrdlIRk/uJNZa0Xtr 74/CbABCo4e03w1qzdzqoyr8UGnbaybw5AfW5GAY2WmlLbu+scfYzxgQJlboo2IP8KzIdd hr9bfwuKM9gjjusjRY7p6Ft2NH+MXky47nGY31clRobFDaKaGuBFEtkJ/em/sA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.40 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 06C0E35C14 X-Spam-Score: -1.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: b5abD1PhcnZK Hello Ryan, > We can disable respawns by setting N to 0, which will abort the service > after the first crash. Likewise, we can always respawn by setting > > #:respawn-limit #f Looks nice, thanks for the patch. I have the following error while applying it though: --8<---------------cut here---------------start------------->8--- Applying: service: Add respawn-limit paramter to the service class. error: corrupt patch at line 52 --8<---------------cut here---------------end--------------->8--- Could you try to send it with git-send-email? It would also be nice to add unit tests dedicated to this new feature and update the documentation. Thanks, Mathieu