From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EB1JAiBjJWRwSgAASxT56A (envelope-from ) for ; Thu, 30 Mar 2023 12:23:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +KJdAiBjJWQUcwAA9RJhRA (envelope-from ) for ; Thu, 30 Mar 2023 12:23:28 +0200 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 94022260BD for ; Thu, 30 Mar 2023 12:23:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phpQx-0001db-Gw; Thu, 30 Mar 2023 06:23:07 -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 1phpQs-0001bM-Oo for bug-guix@gnu.org; Thu, 30 Mar 2023 06:23:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phpQs-00026f-EQ for bug-guix@gnu.org; Thu, 30 Mar 2023 06:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phpQs-00052Z-05 for bug-guix@gnu.org; Thu, 30 Mar 2023 06:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#62163: Suppress logging shepherd evaluation in mcron.log Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 30 Mar 2023 10:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62163 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Bruno Victal Cc: 62163@debbugs.gnu.org, Maxim Cournoyer Received: via spool by 62163-submit@debbugs.gnu.org id=B62163.168017176819340 (code B ref 62163); Thu, 30 Mar 2023 10:23:01 +0000 Received: (at 62163) by debbugs.gnu.org; 30 Mar 2023 10:22:48 +0000 Received: from localhost ([127.0.0.1]:55824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phpQd-00051r-Pu for submit@debbugs.gnu.org; Thu, 30 Mar 2023 06:22:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phpQc-00051e-GT for 62163@debbugs.gnu.org; Thu, 30 Mar 2023 06:22:47 -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 1phpQW-00021h-6o; Thu, 30 Mar 2023 06:22:40 -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=5RaMglJwNOBvTeIwXL+Rq6RnzVKYGprfEm1ROydRWhw=; b=hXqWddMEMlSdtG5dd1m5 VFo9vokh6vrezkVDqoUE5mbvQKX1gOGRnbqOjmiBL//v5rFVumyHM7ebQMIOy0+gkP1xZW0m3DTY9 g3IcS1vS1PPX1ElUtnh7Zj4y2cOsIEuE11QHM6y8w1cQJYBZCRSmu/c8nxm3z3XQltYjbSJ+FJ6lf LMuz9XenaDnsRMtvU90yMSns2NEqbl/pjv2M0nHTrjA4srhOc7iIb+oS4+KQ+zLuPzFUUOIPeZ1Xw x7gcKp+KZ41Y5zIy8pHhsglhD9DZi+RsQyDH9NwXOXsJ9eAe/0hL5nkAyfsqYM6zidILIdUB32V/d PKYkB1jn69cpjQ==; Received: from nat-wifi-eduroam.reseau.univ-paris13.fr ([81.194.43.244] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phpQV-0000zI-8K; Thu, 30 Mar 2023 06:22:39 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <31d1f072-0276-6fa5-0adf-6c18177d4d01@makinata.eu> <87ileq1gqo.fsf@gmail.com> <875yakg7w2.fsf@gnu.org> <8164fa63-99bd-f1d5-2f21-628f079c6039@makinata.eu> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: =?UTF-8?Q?D=C3=A9cadi?= 10 Germinal an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Couvoir X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 30 Mar 2023 12:22:36 +0200 In-Reply-To: <8164fa63-99bd-f1d5-2f21-628f079c6039@makinata.eu> (Bruno Victal's message of "Tue, 28 Mar 2023 17:32:14 +0100") Message-ID: <87y1neo7wz.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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680171807; a=rsa-sha256; cv=none; b=fzwa9v2p0Hi5aFqeB0FOkkEhInPaBJnFGgn0V2ni7EAbDjID3+jWvGitjsP1pEToT9zHE8 RMIJgwrsN7GLyE0OSeQ3nKlfmMqlSmBZ7GJU5sQMokGWe0vRQN7vtHyeWKXbrELcqhDnNV 1SmSK2d7Dcx1oW4ivMYCuKK2rh5pmwthgZA+NethxP/HYgyMp5NfVrA/x4GUH5JU0F63++ qEtbVV51YuktZ4Bx4qxO6hEwBrZ+nYtc3LV7WD2yRRkOXGAz3UdZBmEc25ehYPvpXufq5E M9AGAvsnpg9BQ/cVbSYJuCDOGp9v65W53dcVmPVhDYrGAybfqBUzH/IcrleHVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=hXqWddME; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680171807; 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: content-transfer-encoding:content-transfer-encoding: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:dkim-signature; bh=5RaMglJwNOBvTeIwXL+Rq6RnzVKYGprfEm1ROydRWhw=; b=erZ1vkFf4C9qJ/2dtcSp0/UsfJ63+9zafRVwj1hIomIDjb+OiFgoclOr7l8migqUh+J3Zt H+ga9g4e1fZxx/5GsUCRloFO+XI9/IfkiKmraP1hV1AyBYa/rdNcuocp2w60Vr/nMj4cgs Dwqq43dYFtrGh8bVuXAt9Re0FA+3kojZSOWhgIO93+MFpjngttM3zVC5sgnynsZySuZepL JwIQzODULqMgXHPlkQ16kxMsPqqAuKW8cUwr8o54ohVuflKlNCiA28vCBAkbW/5Nm4a0KE jDrZrBmGl5acWWtySin8XJl+oK9SBP2izgnKWf36cSJKwWNGo9H0dQB4YVlpUw== X-Migadu-Spam-Score: -2.62 X-Spam-Score: -2.62 X-Migadu-Queue-Id: 94022260BD X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=hXqWddME; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-TUID: XgGeVUP1oGF+ Hi, Bruno Victal skribis: > On 2023-03-28 17:25, Ludovic Court=C3=A8s wrote: >>=20 >> Nope. :-) What is =E2=80=98my-heartbeat-job=E2=80=99 doing? > > It queries shepherd to see if a service is running and sends a restart if= required. Isn=E2=80=99t that what #:respawn? #t is supposed to do? :-) If you find that #:respawn? doesn=E2=80=99t work, then we should fix it. > (define* (heartbeat-supervisor #:key (name #f) service task > #:allow-other-keys) > ;; Query service status and restart if needed. > (program-file > (format #f "~@[~a-~]heartbeat-supervisor.scm" name) > (with-imported-modules (source-module-closure > '((gnu services herd))) > #~(begin > (use-modules (gnu services herd) > (srfi srfi-1)) > > (define (is-service-running? sym) > (lambda (x) > (and (live-service-running x) > (memq sym (live-service-provision x))))) > > (let ((running? (not (null? > (any (is-service-running? '#$service) > (current-services)))))) You can send messages to the bitbucket with: (parameterize ((shepherd-message-port (%make-void-port "w0"))) =E2=80=A6) HTH, Ludo=E2=80=99.