From patchwork Sun Jan 28 21:28:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 59540 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 72E3B27BBEA; Sun, 28 Jan 2024 21:29:14 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 05C2427BBE2 for ; Sun, 28 Jan 2024 21:29:14 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUCi0-0003d7-6l; Sun, 28 Jan 2024 16:28:56 -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 1rUChy-0003cU-MG for guix-patches@gnu.org; Sun, 28 Jan 2024 16:28:54 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUChy-0005kv-E1 for guix-patches@gnu.org; Sun, 28 Jan 2024 16:28:54 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUCi6-0001XA-97 for guix-patches@gnu.org; Sun, 28 Jan 2024 16:29:02 -0500 Subject: bug#68468: [PATCH v2] gnu: services: Add respawn-limit and respawn-delay. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sun, 28 Jan 2024 21:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 68468 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: attila.lendvai@gmail.com Cc: 68468-done@debbugs.gnu.org, Attila Lendvai Mail-Followup-To: 68468@debbugs.gnu.org, ludo@gnu.org, attila.lendvai@gmail.com Received: via spool by 68468-done@debbugs.gnu.org id=D68468.17064773375880 (code D ref 68468); Sun, 28 Jan 2024 21:29:02 +0000 Received: (at 68468-done) by debbugs.gnu.org; 28 Jan 2024 21:28:57 +0000 Received: from localhost ([127.0.0.1]:58458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUCi0-0001Wl-L9 for submit@debbugs.gnu.org; Sun, 28 Jan 2024 16:28:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUChz-0001WV-99 for 68468-done@debbugs.gnu.org; Sun, 28 Jan 2024 16:28:55 -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 1rUChl-0005jh-N5; Sun, 28 Jan 2024 16:28:41 -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=DZPLg7KiUfQli1cYu86v6eBOBQnAJoIALv7v2zdsUZI=; b=W/jXpKsTxcrUl5x4WKgV qBtMn//TgnG3jhxopaHM5NLcQmrOQKbWSe6Gt5kNtIjSaUT5yj6Du0gSUCS9ANK/u5Muuwwfj+QTZ AYXGWGz8yhgPZVPUve3tak62QLAH7Miq4d1z+VW1atg/RNb1WW0y9TEPdKaLB0CPv7vkyX1roipuw +TJZXQNKM4wY4hkEmvAisGORbY7CFQXYw58A+2jDIoorY3noYDWAE5cF6prRwXrCkQ4PxloB8GixH aYDewurBEXYAXTH2b2/xSGVWZoFMz3bIkI8lxxqFmk5TYZFC07+3lKpPIiUahl0PjQF8YOYxFEtF7 ZvUrI6uBlNtldw==; From: Ludovic =?utf-8?q?Court=C3=A8s?= In-Reply-To: <90823c237e0086ba1a0c64dffdf2cef00bbecc71.1706195140.git.attila@lendvai.name> (attila lendvai's message of "Thu, 25 Jan 2024 16:05:41 +0100") References: <288643093baa2855c7b5f8cf1d9f6da2b378f965.1705315426.git.attila@lendvai.name> <90823c237e0086ba1a0c64dffdf2cef00bbecc71.1706195140.git.attila@lendvai.name> Date: Sun, 28 Jan 2024 22:28:37 +0100 Message-ID: <87wmrtdu62.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi, attila.lendvai@gmail.com skribis: > From: Attila Lendvai > > * gnu/services/shepherd.scm (): Add respawn-limit and > respawn-delay. > (shepherd-service-file): Emit the two values into the shepherd service > constructor form. > > Change-Id: I54408e8fb4bcc0956d9610771bf5c566fdc2914c Applied with the tweaks below, thanks! Ludo’. diff --git a/doc/guix.texi b/doc/guix.texi index 6b95ff89e0..9c703da9bc 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -43145,11 +43145,12 @@ Shepherd Services @item @code{respawn-limit} (default: @code{#f}) Set a limit on how many times and how frequently a service may be -restarted by Shepherd before it is disabled. See @pxref{Defining -Services,,, shepherd, The GNU Shepherd Manual} for details. +restarted by Shepherd before it is disabled. @xref{Defining +Services,,, shepherd, The GNU Shepherd Manual}, for details. @item @code{respawn-delay} (default: @code{#f}) -Wait @code{respawn-delay} seconds before restarting a failed service. +When true, this is the delay in seconds before restarting a failed +service. @item @code{start} @itemx @code{stop} (default: @code{#~(const #f)})