From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KEULGU9BJmSlXAEASxT56A (envelope-from ) for ; Fri, 31 Mar 2023 04:11:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uAkRGU9BJmTrbgEA9RJhRA (envelope-from ) for ; Fri, 31 Mar 2023 04:11:27 +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 F3C5811807 for ; Fri, 31 Mar 2023 04:11:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pi4EM-00052J-Ic; Thu, 30 Mar 2023 22:11:06 -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 1pi4EI-00050S-8I for bug-guix@gnu.org; Thu, 30 Mar 2023 22:11:05 -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 1pi4EI-0001QG-10 for bug-guix@gnu.org; Thu, 30 Mar 2023 22:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pi4EH-0004EB-Np for bug-guix@gnu.org; Thu, 30 Mar 2023 22:11:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#62163: Suppress logging shepherd evaluation in mcron.log Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 31 Mar 2023 02:11: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 62163@debbugs.gnu.org Received: via spool by 62163-submit@debbugs.gnu.org id=B62163.168022864116224 (code B ref 62163); Fri, 31 Mar 2023 02:11:01 +0000 Received: (at 62163) by debbugs.gnu.org; 31 Mar 2023 02:10:41 +0000 Received: from localhost ([127.0.0.1]:59917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pi4Dx-0004Dc-AQ for submit@debbugs.gnu.org; Thu, 30 Mar 2023 22:10:41 -0400 Received: from mail-qv1-f47.google.com ([209.85.219.47]:40747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pi4Dv-0004DP-9k for 62163@debbugs.gnu.org; Thu, 30 Mar 2023 22:10:39 -0400 Received: by mail-qv1-f47.google.com with SMTP id on15so2286897qvb.7 for <62163@debbugs.gnu.org>; Thu, 30 Mar 2023 19:10:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680228633; x=1682820633; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=VjVqUstTmYQe291W1qp93Ba4n+npbFdvk3EQ/BF7Y64=; b=eUEUwDNw7Buds6ZyCFzE+o4w5JH3GPxcev/FnVcd5nf3llQC8Bpu0blAu0V+AHltc1 pG40vJ/npsssptjHt6FHI6qkkVuKWecDuHtwcaVyZrXmdEDA+r+sNXgiGa6DfOzA+kry frlhVdKVd+BbRMlNMXneto6DLmmoToaLr8e/rOLkrXJQ6rfBcv2Ic8rZqRa/Wrj2kvTq Qz8UBYL7gRc3ciSorR2IjmomqK1t/dwgtERuef26IJLUxvTY4mWs2Jj4gYBzHlNWrN+g m98+4ClQA1BeDsE6Q5xiFvEoxc9wg1vCpDXREJiBdFHhBR4SV+cZYVSGZYF4MJVSxRdp g19g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680228633; x=1682820633; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VjVqUstTmYQe291W1qp93Ba4n+npbFdvk3EQ/BF7Y64=; b=pqQJRKYCFxXXOrrGTzqwYLlt7PTSTxwnx1XLC1OTHCysloKMr8yebGcTAsCkKLg0p5 ayVmB6iM7rQNYl1ifd6j8w7S9+l1E3r44ZqIWxIO0aNbVgZdGeIA7u2ieqV4YN8sUFsK 1zTGWDgqAK6oOxOQF2FemTlgMHUxj42SrJbRdIpiHIn5kMIck831uejEuaib/4Pntm+t cJ9eQg+ibkI68ic6azZxak1dQqzyuaxqwPG5Cq8guI1PBK3WSorT9Zg/fG07i/ID0Zjp DxqY9wiFjeddWN2b4qIbNWuYlnU+18RL6ljPBowq01PRTRF5DQL5egqd6D4nlGwfeaNs Akaw== X-Gm-Message-State: AAQBX9cnSemPNz/kfdgmMbcGsfYodg0bauiT2slfTxqp4UrgrojD4GGk 8IEMh1syiPh5GZTBeZvDsXjQYhh8LSGRJA== X-Google-Smtp-Source: AKy350YTCSr3kEj+K7Do4kuN4WNedivRN2F9xSqc6dCxe7izI4Yz1m8Ydzz+/6KOOTHGcZJNJxCH5w== X-Received: by 2002:a05:6214:48e:b0:5a5:b269:bfd7 with SMTP id pt14-20020a056214048e00b005a5b269bfd7mr45453546qvb.8.1680228633375; Thu, 30 Mar 2023 19:10:33 -0700 (PDT) Received: from hurd (dsl-10-133-241.b2b2c.ca. [72.10.133.241]) by smtp.gmail.com with ESMTPSA id o6-20020a0c9006000000b005e0cd3c21c8sm282324qvo.13.2023.03.30.19.10.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 19:10:32 -0700 (PDT) From: Maxim Cournoyer References: <31d1f072-0276-6fa5-0adf-6c18177d4d01@makinata.eu> <87ileq1gqo.fsf@gmail.com> <875yakg7w2.fsf@gnu.org> <8164fa63-99bd-f1d5-2f21-628f079c6039@makinata.eu> <87y1neo7wz.fsf@gnu.org> Date: Thu, 30 Mar 2023 22:10:31 -0400 In-Reply-To: (Bruno Victal's message of "Thu, 30 Mar 2023 12:21:18 +0100") Message-ID: <871ql5zn54.fsf@gmail.com> 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=1680228687; a=rsa-sha256; cv=none; b=oRhFdegX1kbFumxtbMVbkxl30HGWWMRcXT672HAIffQGHK3cE+tVdOVTQqzqK3i3vlkWC/ mKT9DZZkjV+d2At70Xu+48HC/2ebhkYQ/mgXPaiL1qkN+bZ+cc+DULI1cnT8Bl5yRBkLPs SXjYgPHI87VIQAbI7Y7hXUxiMXq7P+w8b3VyV+LjN74kCeYpHzpwFdBHJZrYYxeRO+grkz /v/0gKNvsM3IM51m2+qYYi4ohb4tiRUQ8dyxE/KQTZp9iXUcXXMjmoWzUB7lWqzKkKbE3M oVOvAGAu5kvH22qFHcmZLPOPuOTa6IJh1VLncNmVVph3n6buymRVyBFG3gzjew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=eUEUwDNw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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=1680228687; 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=VjVqUstTmYQe291W1qp93Ba4n+npbFdvk3EQ/BF7Y64=; b=eqmUov8b1/q2ODqySSHbjEw2ansUvrEtjA0Ao5JuFIOA85R7EB9OfqftniZhbj9l1wMcRv AUnj0paR9dIA8WDInVitaJdcDLwK/UwNiARATy2WJ6Ao5Sf2CWcrLf1KhhHjdEY2JoqZxE U0Q1YOeMBcEZzdUgujVUxavl417yCmHziZTacfIESF2XNw+sZiq4f16AtNtRqZ9CdDfd+n FL2q1jBhXSVcCHNWUKAIQik9wKyOnm+Lr/plZBaM4V8DWw8MDisl2fDpZ53KL/zf+N+gDP uH46qJbwymONu4ZMhN7jbKUhfJUsaMViWsu0g/INN1k3bLJ87yaNd6E5ofrNaA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=eUEUwDNw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.12 X-Spam-Score: -3.12 X-Migadu-Queue-Id: F3C5811807 X-TUID: D9AUKKgbprIR Hi, Bruno Victal writes: > On 2023-03-30 11:22, Ludovic Court=C3=A8s wrote: >> Hi, >>=20 >> Bruno Victal skribis: >>=20 >>> On 2023-03-28 17:25, Ludovic Court=C3=A8s wrote: >>>> >>>> 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. >>=20 >> Isn=E2=80=99t that what #:respawn? #t is supposed to do? :-) >>=20 >> If you find that #:respawn? doesn=E2=80=99t work, then we should fix it. > > Oh, I should have explained better here. > Re-spawn works, it's the (daemon) service that might misbehave/go unrespo= nsive without crashing, > i.e. HTTP backend stops responding to API requests but the server is stil= l up. > The job performs a "health-check" and restarts it if it doesn't get the a= ppropriate response. > > A concrete situation where this could be of use is for logs.guix that occ= asionally stops > recording. So some kind of supervisor for the job, that specific run time checks to ensure the process is still doing its job, if I understand correctly. I wonder if this use case could be integrated into our Shepherd services themselves, via some supervisor slot or similar, that would run some script periodically. --=20 Thanks, Maxim