From patchwork Sun Feb 18 14:54:51 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: 60474 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 AE6E627BBEA; Sun, 18 Feb 2024 14:55:58 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,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 0EEC927BBE2 for ; Sun, 18 Feb 2024 14:55:58 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rbia0-0004u7-0e; Sun, 18 Feb 2024 09:55:44 -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 1rbiZy-0004to-H9 for guix-patches@gnu.org; Sun, 18 Feb 2024 09:55:42 -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 1rbiZx-0001r6-Vi for guix-patches@gnu.org; Sun, 18 Feb 2024 09:55:42 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rbiaI-0001VW-6y for guix-patches@gnu.org; Sun, 18 Feb 2024 09:56:02 -0500 Subject: bug#57387: [PATCH v3] gnu: Add restartd. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sun, 18 Feb 2024 14:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 57387 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nicolas Graves Cc: othacehe@gnu.org, 57387-done@debbugs.gnu.org Mail-Followup-To: 57387@debbugs.gnu.org, ludo@gnu.org, ngraves@ngraves.fr Received: via spool by 57387-done@debbugs.gnu.org id=D57387.17082681244182 (code D ref 57387); Sun, 18 Feb 2024 14:56:01 +0000 Received: (at 57387-done) by debbugs.gnu.org; 18 Feb 2024 14:55:24 +0000 Received: from localhost ([127.0.0.1]:34811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbiZg-00015M-6G for submit@debbugs.gnu.org; Sun, 18 Feb 2024 09:55:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbiZd-0000zn-JI for 57387-done@debbugs.gnu.org; Sun, 18 Feb 2024 09:55:22 -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 1rbiZC-0001bU-MF; Sun, 18 Feb 2024 09:54:54 -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=tLmhtjD7OGVCRwCivvj2ZHIY7QFlXiYyAQSwMcOiiik=; b=lft2L19yVDnsmOiVF0AQ J2l+vL5oK4g9dV5yDaNHOGP4rY/kDvYmVwgKxhcODlIfhU1olwEI5pzx4B9dDPdA+TM/+0xHVOi+K PO8DkYP1u7zeE4jEwbA6nCCTyRAlGo2DbfmlWUdOTmNbnSoYmvXz75ZQiInnZFJMEcp6lYUb0CuLF ZXLQPwB91/hmpDsJYjzAKJJ0ht0fbekqNdRHoyQnM+Spup6RsV3vwNOw5v/xF2pv6hnRhJJdEm4Y6 0GVk4Rioiw9c9k6zbzqbIGu/zpQWZI//El3tFjHq0ciM5SL3vxG955CB9AazhfwsZeV2kVlMIjQop KOWmF0GrkRVovQ==; From: Ludovic =?utf-8?q?Court=C3=A8s?= In-Reply-To: <20240203140625.25139-1-ngraves@ngraves.fr> (Nicolas Graves's message of "Sat, 3 Feb 2024 15:06:17 +0100") References: <87czcp8wet.fsf@ngraves.fr> <20240203140625.25139-1-ngraves@ngraves.fr> Date: Sun, 18 Feb 2024 15:54:51 +0100 Message-ID: <87h6i5n7pg.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 Nicolas Graves skribis: > * gnu/packages/admin.scm (restartd): New variable. > * gnu/packages/patches/restartd-update-robust.patch: Add file. > * gnu/local.mk: Register gnu/packages/patches/restartd-update-robust.patch. > > Change-Id: I38b9b70e97b64f006a86d7618a75f1ec3ed8b034 Applied with the changes below, thanks! Ludo’. diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 9f51427297..47c82e9678 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -5886,12 +5886,13 @@ (define-public restartd (string-append #$output "/share/man/fr/man8/restartd.8"))))))) (home-page "https://launchpad.net/debian/+source/restartd") (synopsis "Daemon for restarting processes") - (description "This package provides a daemon for checking running and not -running processes. It reads the /proc directory every n seconds and does a -POSIX regexp on the process names. The daemon runs an user-provided script -when it detects a program in the running processes, or an alternate script if -it doesn't detect the program. The daemon can only be called by the root -user, but can use @code{sudo -u user} in the process called if needed.") + (description "This package provides a daemon for checking running and +not running processes. It reads the @file{/proc} directory every @var{n} +seconds and does a POSIX regexp on the process names. The daemon runs a +user-provided script when it detects a program in the running processes, or an +alternate script if it doesn't detect the program. The daemon can only be +called by the root user, but can use @command{sudo -u user} in the process +called if needed.") (license license:gpl2+)))) (define-public rex