From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 13 11:59:46 2023 Received: (at submit) by debbugs.gnu.org; 13 Mar 2023 15:59:46 +0000 Received: from localhost ([127.0.0.1]:35478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbkaP-0003g5-LY for submit@debbugs.gnu.org; Mon, 13 Mar 2023 11:59:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:33422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbkaN-0003fv-KU for submit@debbugs.gnu.org; Mon, 13 Mar 2023 11:59:43 -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 1pbkaH-0006GU-Ps for bug-guix@gnu.org; Mon, 13 Mar 2023 11:59:38 -0400 Received: from smtpm1.myservices.hosting ([185.26.105.232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbkaG-0008TW-78 for bug-guix@gnu.org; Mon, 13 Mar 2023 11:59:37 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm1.myservices.hosting (Postfix) with ESMTP id 370EB2094E for ; Mon, 13 Mar 2023 16:59:23 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id E2900800A4; Mon, 13 Mar 2023 16:59:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SXQiJJ_mGhw9; Mon, 13 Mar 2023 16:59:21 +0100 (CET) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 834228009D; Mon, 13 Mar 2023 16:59:21 +0100 (CET) Message-ID: <31d1f072-0276-6fa5-0adf-6c18177d4d01@makinata.eu> Date: Mon, 13 Mar 2023 15:59:10 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 X-Mozilla-News-Host: news://news.yhetil.org:119 Content-Language: en-US To: bug-guix From: Bruno Victal Subject: Suppress logging shepherd evaluation in mcron.log Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.26.105.232; envelope-from=mirai@makinata.eu; helo=smtpm1.myservices.hosting X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: mirai X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Upon mcron job completion, /var/log/mcron.log is spammed with: “shepherd: Evaluating user expression (and (defined? (quote transient?)) (map (# ?) ?))” These shepherd lines should be suppressible. /var/log/mcron.log snippet: --8<---------------cut here---------------start------------->8--- 2023-03-13 16:52:00 243 my-heartbeat-job job: running... 2023-03-13 16:52:00 243 my-heartbeat-job job: Healthcheck: OK 2023-03-13 16:52:00 243 my-heartbeat-job job: shepherd: Evaluating user expression (and (defined? (quote transient?)) (map (# ?) ?)). 2023-03-13 16:52:00 243 my-heartbeat-job job: completed in 0.087s --8<---------------cut here---------------end--------------->8--- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 24 12:36:21 2023 Received: (at 62163) by debbugs.gnu.org; 24 Mar 2023 16:36:21 +0000 Received: from localhost ([127.0.0.1]:41262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfkOr-0006iq-5W for submit@debbugs.gnu.org; Fri, 24 Mar 2023 12:36:21 -0400 Received: from mail-qt1-f170.google.com ([209.85.160.170]:34466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfkOn-0006ia-Tu for 62163@debbugs.gnu.org; Fri, 24 Mar 2023 12:36:19 -0400 Received: by mail-qt1-f170.google.com with SMTP id bz27so1988431qtb.1 for <62163@debbugs.gnu.org>; Fri, 24 Mar 2023 09:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679675772; 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=SDEB1m+6P48tp2eSknADYxQjXz7+ROSo4IbJ67A8a+8=; b=XWXmfIRArGavgII2nVqgerLyaVSBmIwKcdQ+Pct+ZcymE+V7YnWAQetXdPWwGw9VzR ighRkKoA12iYlWYhUPQG7urIhm14ByA2x3afbPSRP2mtn+fLyfGZA71W5W0iIfRZbcz2 eHmNeTb5HEWcbGAmG+KVjfWPO8WTr3bR9X7vvF6TorlAIevJLxZIoAAoAqCpouv2S0xM H8QL50WL4VugPTPKKzouAeQiVjkO2S5+OrKEeeo20M5vAX9KXytKc11xGT/L73+gaqhB 7PmYAf5IJb2oGOHNmsQnNHeWzlaGqOn5uoXo9Cx6lRu6RS243zfnQqKfphHj2zMBesDt AMaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679675772; 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=SDEB1m+6P48tp2eSknADYxQjXz7+ROSo4IbJ67A8a+8=; b=dHXwH5HncsFF+3L7Ga95bO4Qu1qOnK4GfeNYgauGCXS/BknWJ5x1Hgoej7xhNhmMV6 Z/+buldAL3IriZ0hqwXnwZJavrG8YQvIlHzI654mA2l5CdzeDURH/q94XW631HNShtKl SOJnZ8ZYdjIdH77dgpWjfhM08RO8G4Wd3OIY16W8ZHDpJAokjIGnqTo9meKV71H6Jsp8 bAYI8a1qhARyGqEk5TS8E2GRoIWQgdEHNbD6VFGrKW/XFJY2/a/ipOMpazoVaMcmsSQu dcyoa/hOg6vLCu5veaUaFChzJIsNrLmYZK8Z3qPLyT48eSOU9KN7J+Vmu/IlNZjCn1R8 8tLQ== X-Gm-Message-State: AO0yUKV2c/0fqfqqDZUAkvh/uQQL4IVGYoAIrPrPm+A5U9snERWcPMPM R/8NHQIjkatxMz+iryp/0DrNCE1C3+5muw== X-Google-Smtp-Source: AKy350af+A8j8gMLZiDrzw06oTrKcIZzZgTKvKa4ZBTRm6jcW/Hqs2GufYa/SO63+WmzDKCLwHNbUQ== X-Received: by 2002:ac8:5c14:0:b0:3e4:d887:3e83 with SMTP id i20-20020ac85c14000000b003e4d8873e83mr540068qti.12.1679660544743; Fri, 24 Mar 2023 05:22:24 -0700 (PDT) Received: from hurd (dsl-155-54.b2b2c.ca. [66.158.155.54]) by smtp.gmail.com with ESMTPSA id t8-20020ac87388000000b003defe5ab4aesm9561006qtp.94.2023.03.24.05.22.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 05:22:24 -0700 (PDT) From: Maxim Cournoyer To: Bruno Victal Subject: Re: bug#62163: Suppress logging shepherd evaluation in mcron.log References: <31d1f072-0276-6fa5-0adf-6c18177d4d01@makinata.eu> Date: Fri, 24 Mar 2023 08:22:23 -0400 In-Reply-To: <31d1f072-0276-6fa5-0adf-6c18177d4d01@makinata.eu> (Bruno Victal's message of "Mon, 13 Mar 2023 15:59:10 +0000") Message-ID: <87ileq1gqo.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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62163 Cc: =?utf-8?Q?Ludovic_Court=C3=A8s?= , 62163@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Bruno Victal writes: > Upon mcron job completion, /var/log/mcron.log is spammed with: > =E2=80=9Cshepherd: Evaluating user expression (and (defined? (quote trans= ient?)) (map (# ?) ?))=E2=80=9D > > These shepherd lines should be suppressible. > > > /var/log/mcron.log snippet: > > 2023-03-13 16:52:00 243 my-heartbeat-job job: running... > 2023-03-13 16:52:00 243 my-heartbeat-job job: Healthcheck: OK > 2023-03-13 16:52:00 243 my-heartbeat-job job: shepherd: Evaluating user e= xpression (and (defined? (quote transient?)) (map (# ?) ?)). > 2023-03-13 16:52:00 243 my-heartbeat-job job: completed in 0.087s > I think this was already fixed in Shepherd on its master branch. Ludo, could you please confirm? --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 28 12:26:02 2023 Received: (at 62163) by debbugs.gnu.org; 28 Mar 2023 16:26:02 +0000 Received: from localhost ([127.0.0.1]:50578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phC93-0005th-To for submit@debbugs.gnu.org; Tue, 28 Mar 2023 12:26:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phC91-0005tP-J6 for 62163@debbugs.gnu.org; Tue, 28 Mar 2023 12:26:00 -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 1phC8v-00015u-D3; Tue, 28 Mar 2023 12:25:53 -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=HWYJZ9JItdHtf3tBX0cud+dnFrARSJx8gM4XHgEC7I0=; b=RdZ+iv36EVVTZt031Cht x+ux1hIbEGllL7tOWtmcFLnM8m5lFJDEuoaBtPcZTPPyZfJUFiqlsY6PQgQ8FkZtRWVUj63wEGEsn umpM0ZXpJveahQ8/XYDyBTYrTlUld9VFDwh139WKqHMYeC5mF7bvMkAVHKs1trRD6ptvUd/RVuVwG 4PRrGYla7TzT6v9t+QC4ppN4nOhEu3LSDEzIH8Pxe1ck4d5u5mAvbOEWMATeyENxhN2MuEiU/TK4j e3hAUGurqafmAHvUjhaVf3LsP3dPzsM3qG2EWnXWhwcztnhsKkWkl9G17nQ2JApDbgM6tukfd9XRC AM90NUuyd3/Pog==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phC8t-0000ts-Ce; Tue, 28 Mar 2023 12:25:53 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#62163: Suppress logging shepherd evaluation in mcron.log References: <31d1f072-0276-6fa5-0adf-6c18177d4d01@makinata.eu> <87ileq1gqo.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Octidi 8 Germinal an 231 de la =?utf-8?Q?R=C3=A9volu?= =?utf-8?Q?tion=2C?= jour de la Jonquille 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: Tue, 28 Mar 2023 18:25:49 +0200 In-Reply-To: <87ileq1gqo.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 24 Mar 2023 08:22:23 -0400") Message-ID: <875yakg7w2.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62163 Cc: 62163@debbugs.gnu.org, Bruno Victal X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Maxim Cournoyer skribis: > Bruno Victal writes: > >> Upon mcron job completion, /var/log/mcron.log is spammed with: >> =E2=80=9Cshepherd: Evaluating user expression (and (defined? (quote tran= sient?)) (map (# ?) ?))=E2=80=9D >> >> These shepherd lines should be suppressible. >> >> >> /var/log/mcron.log snippet: >> >> 2023-03-13 16:52:00 243 my-heartbeat-job job: running... >> 2023-03-13 16:52:00 243 my-heartbeat-job job: Healthcheck: OK >> 2023-03-13 16:52:00 243 my-heartbeat-job job: shepherd: Evaluating user = expression (and (defined? (quote transient?)) (map (# ?) ?)). >> 2023-03-13 16:52:00 243 my-heartbeat-job job: completed in 0.087s >> > > I think this was already fixed in Shepherd on its master branch. Ludo, > could you please confirm? Nope. :-) What is =E2=80=98my-heartbeat-job=E2=80=99 doing? The =E2=80=9CEvaluating=E2=80=A6=E2=80=9D message occurs when using the =E2= =80=98eval=E2=80=99 action of the =E2=80=98root=E2=80=99 service, as in =E2=80=9Cherd eval root '(+ 2 2)'=E2= =80=9D. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 28 12:49:36 2023 Received: (at 62163) by debbugs.gnu.org; 28 Mar 2023 16:49:36 +0000 Received: from localhost ([127.0.0.1]:50597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phCVr-0006YD-SN for submit@debbugs.gnu.org; Tue, 28 Mar 2023 12:49:36 -0400 Received: from smtpmciv4.myservices.hosting ([185.26.107.240]:54996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phCVp-0006Y2-Ud for 62163@debbugs.gnu.org; Tue, 28 Mar 2023 12:49:34 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv4.myservices.hosting (Postfix) with ESMTP id 905D4204E3; Tue, 28 Mar 2023 18:49:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 0B966800A4; Tue, 28 Mar 2023 18:32:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id fYNAtPXjIpIu; Tue, 28 Mar 2023 18:32:18 +0200 (CEST) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 7CDB7800A1; Tue, 28 Mar 2023 18:32:18 +0200 (CEST) Message-ID: <8164fa63-99bd-f1d5-2f21-628f079c6039@makinata.eu> Date: Tue, 28 Mar 2023 17:32:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: bug#62163: Suppress logging shepherd evaluation in mcron.log Content-Language: en-US To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= References: <31d1f072-0276-6fa5-0adf-6c18177d4d01@makinata.eu> <87ileq1gqo.fsf@gmail.com> <875yakg7w2.fsf@gnu.org> From: Bruno Victal In-Reply-To: <875yakg7w2.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 62163 Cc: 62163@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Hi Ludo’, On 2023-03-28 17:25, Ludovic Courtès wrote: > > Nope. :-) What is ‘my-heartbeat-job’ doing? It queries shepherd to see if a service is running and sends a restart if required. It looks like this: (#$task is what will perform the actual checks) --8<---------------cut here---------------start------------->8--- (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)))))) (when running? (case (status:exit-val (system* #$task)) ((0) #t) ((125) (format #t "Heartbeat worker error~%")) (else (format #t "Issuing restart for service '~a'~%" '#$service) (restart-service '#$service))))) (exit))))) --8<---------------cut here---------------end--------------->8--- This message also shows up if you're using certbot-service-type, so it's not specific to the snippet above. Cheers, Bruno From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 30 06:22:48 2023 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Bruno Victal Subject: Re: bug#62163: Suppress logging shepherd evaluation in mcron.log 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=2C?= 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-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, Bruno Victal skribis: > On 2023-03-28 17:25, Ludovic Courtès wrote: >> >> Nope. :-) What is ‘my-heartbeat-job’ doing? > > It queries shepherd to see if a service is running and sends a restart if required. Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [81.194.43.244 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.92 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record X-Debbugs-Envelope-To: 62163 Cc: 62163@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 30 07:21:30 2023 Received: (at 62163) by debbugs.gnu.org; 30 Mar 2023 11:21:30 +0000 Received: from localhost ([127.0.0.1]:55921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phqLS-0006rN-CY for submit@debbugs.gnu.org; Thu, 30 Mar 2023 07:21:30 -0400 Received: from smtpm1.myservices.hosting ([185.26.105.232]:47854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phqLR-0006rG-2V for 62163@debbugs.gnu.org; Thu, 30 Mar 2023 07:21:29 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm1.myservices.hosting (Postfix) with ESMTP id 89C1520520; Thu, 30 Mar 2023 13:21:27 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 3E83A8009E; Thu, 30 Mar 2023 13:21:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id aG9dtIINym9Z; Thu, 30 Mar 2023 13:21:26 +0200 (CEST) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id A93A28009B; Thu, 30 Mar 2023 13:21:26 +0200 (CEST) Message-ID: Date: Thu, 30 Mar 2023 12:21:18 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: bug#62163: Suppress logging shepherd evaluation in mcron.log Content-Language: en-US To: =?UTF-8?Q?Ludovic_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> <87y1neo7wz.fsf@gnu.org> From: Bruno Victal In-Reply-To: <87y1neo7wz.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 62163 Cc: 62163@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) On 2023-03-30 11:22, Ludovic Courtès wrote: > Hi, > > Bruno Victal skribis: > >> On 2023-03-28 17:25, Ludovic Courtès wrote: >>> >>> Nope. :-) What is ‘my-heartbeat-job’ doing? >> >> It queries shepherd to see if a service is running and sends a restart if required. > > Isn’t that what #:respawn? #t is supposed to do? :-) > > If you find that #:respawn? doesn’t 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 unresponsive without crashing, i.e. HTTP backend stops responding to API requests but the server is still up. The job performs a "health-check" and restarts it if it doesn't get the appropriate response. A concrete situation where this could be of use is for logs.guix that occasionally stops recording. > > You can send messages to the bitbucket with: > > (parameterize ((shepherd-message-port (%make-void-port "w0"))) > …) Thanks! I'm still curious as to exactly what/which lines cause shepherd to output the lines. Cheers, Bruno From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 30 22:10:41 2023 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 To: Bruno Victal Subject: Re: bug#62163: Suppress logging shepherd evaluation in mcron.log 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62163 Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , 62163@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 31 07:52:49 2023 Received: (at 62163) by debbugs.gnu.org; 31 Mar 2023 11:52:49 +0000 Received: from localhost ([127.0.0.1]:60558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piDJI-0006ga-UJ for submit@debbugs.gnu.org; Fri, 31 Mar 2023 07:52:49 -0400 Received: from smtpmciv3.myservices.hosting ([185.26.107.239]:45242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piDJH-0006gP-8c for 62163@debbugs.gnu.org; Fri, 31 Mar 2023 07:52:47 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv3.myservices.hosting (Postfix) with ESMTP id BD1AF203E6; Fri, 31 Mar 2023 13:52:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 2C8D18009C; Fri, 31 Mar 2023 13:52:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id U9YnrfZW3JVe; Fri, 31 Mar 2023 13:52:39 +0200 (CEST) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id C09D08009B; Fri, 31 Mar 2023 13:52:38 +0200 (CEST) Message-ID: Date: Fri, 31 Mar 2023 12:52:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: bug#62163: Suppress logging shepherd evaluation in mcron.log Content-Language: en-US To: =?UTF-8?Q?Ludovic_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> <87y1neo7wz.fsf@gnu.org> From: Bruno Victal In-Reply-To: <87y1neo7wz.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 62163 Cc: 62163@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) On 2023-03-30 11:22, Ludovic Courtès wrote: > > You can send messages to the bitbucket with: > > (parameterize ((shepherd-message-port (%make-void-port "w0"))) > …) While it does work for expunging them from mcron log, I noticed that these lines are also polluting /var/log/messages and the snippet above doesn't handle that. Is there perhaps something else I'm missing? Thanks, Bruno From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 31 08:18:47 2023 Received: (at 62163) by debbugs.gnu.org; 31 Mar 2023 12:18:47 +0000 Received: from localhost ([127.0.0.1]:60610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piDiQ-0007X1-WC for submit@debbugs.gnu.org; Fri, 31 Mar 2023 08:18:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piDiP-0007Wk-3G for 62163@debbugs.gnu.org; Fri, 31 Mar 2023 08:18:45 -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 1piDiH-00071k-Qn; Fri, 31 Mar 2023 08:18:38 -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=c2moEuub30cqMZpARFVIxEA6lx+ILNSgU9iZBTEzWpw=; b=sLgGSXWosXZxf9hN6DuA 7H3zRyMwa95t6wHXjHnBpDZyWP6s1WqIAQiqLJf/X3dQZYnHCBct4LRxy/oBgXdhMdN3jHTa2qIFV PQYJ+UgYmQfsoQrILnKwN0lMGWdK52ygtGQLyoZLCWoxg9cuXcWHagiroTTbvN/fDbVSoXkanICDf HWBlhfNSoVS1zN/FrDEDpxKx4h8jU3lAanP+6AgxSa+x775LGNrnXZjpSrRtSuronyvvcfjK6mqzB FAL6yibQRWbkNCarEP0JNlPCZsWtH2T7mtX7C/I885wlzX/e/7zGA96whksYzY7PjkCbf3EA3UGym GSQF9ondutduAg==; Received: from [193.50.110.123] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piDiG-0003tD-K3; Fri, 31 Mar 2023 08:18:37 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Bruno Victal Subject: Re: bug#62163: Suppress logging shepherd evaluation in mcron.log 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> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Primidi 11 Germinal an 231 de la =?utf-8?Q?R=C3=A9vo?= =?utf-8?Q?lution=2C?= jour de la Pervenche 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: Fri, 31 Mar 2023 14:18:34 +0200 In-Reply-To: (Bruno Victal's message of "Thu, 30 Mar 2023 12:21:18 +0100") Message-ID: <878rfd5d2d.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62163 Cc: 62163@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Bruno Victal skribis: > On 2023-03-30 11:22, Ludovic Court=C3=A8s wrote: [...] >>> 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. OK. It still means that the service in question is kinda broken, right? > A concrete situation where this could be of use is for logs.guix that occ= asionally stops > recording. Oh you mean =E2=80=98goggles-bot=E2=80=99? Yeah I wonder why it occasional= ly goes wrong, but really I think Someone=E2=84=A2 should debug it (it=E2=80=99s a = small script in maintenance.git). >> You can send messages to the bitbucket with: >>=20 >> (parameterize ((shepherd-message-port (%make-void-port "w0"))) >> =E2=80=A6) > > Thanks! > I'm still curious as to exactly what/which lines cause shepherd to output= the lines. The =E2=80=9CEvaluating=E2=80=9D line is emitted by shepherd, logged, and s= ent to clients (for instance when you do =E2=80=98herd eval root '(+ 2 3)'=E2=80= =99). (gnu services herd) provides a client that echoes those messages to =E2=80=98shepherd-message-port=E2=80=99. Does that make sense? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 31 18:10:46 2023 Received: (at 62163) by debbugs.gnu.org; 31 Mar 2023 22:10:46 +0000 Received: from localhost ([127.0.0.1]:34775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piMxJ-0002ZW-Re for submit@debbugs.gnu.org; Fri, 31 Mar 2023 18:10:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piMxI-0002ZH-4M for 62163@debbugs.gnu.org; Fri, 31 Mar 2023 18:10:44 -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 1piMxC-00069L-0V; Fri, 31 Mar 2023 18:10:38 -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=FU45o8VeDazCZXBvQ21lt6KyzrsUA8NKec8WXMNJN3E=; b=LXdoAiHJm7LqSOO36P6+ 5sbouDt+1TkObNNtQ2eLNWdyN+gpeVSwAmDaaiPUZLfQNeAoRgcXVebuVcxxs5Ur9Bm2iZlTthIWm nucYixHPvNWFPHEuB3yJaTucCMyMY2XWQ3maTrT0v8LVopAmGzuV0i9+d3vF7uNrwmPC2mdxyihDJ kNlycK4gR//adOUl+aE5nIiNgsMm6gT6O7llzk0ByAI/GgcGkn71R10j8oDcqQdlZ02HBp6Rymuwq Qn83wgi6ggV+grUlTaKvxxjbZuFdqS6oMc3Gd6VeoHAruh5KU3DkmuwO8JESE8x1PqcCYrW5BiBRn WD7BK81sR1a6+Q==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piMxB-0004WI-Je; Fri, 31 Mar 2023 18:10:37 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Bruno Victal Subject: Re: bug#62163: Suppress logging shepherd evaluation in mcron.log 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> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 12 Germinal an 231 de la =?utf-8?Q?R=C3=A9volu?= =?utf-8?Q?tion=2C?= jour du Charme 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: Sat, 01 Apr 2023 00:10:34 +0200 In-Reply-To: (Bruno Victal's message of "Fri, 31 Mar 2023 12:52:28 +0100") Message-ID: <87355kinc5.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62163 Cc: 62163@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Bruno Victal skribis: > On 2023-03-30 11:22, Ludovic Court=C3=A8s wrote: >>=20 >> You can send messages to the bitbucket with: >>=20 >> (parameterize ((shepherd-message-port (%make-void-port "w0"))) >> =E2=80=A6) > > While it does work for expunging them from mcron log, I noticed that > these lines are also polluting /var/log/messages and the snippet above > doesn't handle that. > Is there perhaps something else I'm missing? Nope, you cannot prevent them from ending up in /var/log/messages; they are purposefully logged. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 27 09:24:27 2023 Received: (at 62163) by debbugs.gnu.org; 27 Apr 2023 13:24:27 +0000 Received: from localhost ([127.0.0.1]:57786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ps1bm-0000Vp-Sm for submit@debbugs.gnu.org; Thu, 27 Apr 2023 09:24:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ps1bh-0000VW-Ps for 62163@debbugs.gnu.org; Thu, 27 Apr 2023 09:24:25 -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 1ps1bb-0003TZ-4S; Thu, 27 Apr 2023 09:24:15 -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=+yr72lNK5vUWGJB3f1n1g90Vznyd9HTKarqC4gTQO80=; b=cZ/zYfBpWHCeNsdnM0EH 7QxkjZaHGnEklBH8EhodJ24cL8Qpwqjg0t5kFBMf9PhSsz7yocCX6A71tPo9Gv/1kbGUhGr0fn7yY 3ysdLg7bYwO9i/8NlLf+IfeYF3y1A+P8CLHLJ5EKv4e9M0+/Rw7qCdb+vSHC+btdgWiOeCr77uJJb LqMokFiLCZki3z3NZqm0m+LL5CCpwgCXJtwhOzTS+o70FTWweuNwghtoSEs9JfGFeiAaAx3TGFqJk CXFCWeq8e23wF/c3xi4VlDtCIFnUJ9MDXf8mhoTO1KMSt2g9yCk9doxRGTQtmtdXu6KZGdqinyeN6 4s6uxlFxNhfKdw==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ps1ba-00028Z-Fk; Thu, 27 Apr 2023 09:24:14 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Bruno Victal Subject: Re: bug#62163: Suppress logging shepherd evaluation in mcron.log 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> <87355kinc5.fsf@gnu.org> Date: Thu, 27 Apr 2023 15:24:12 +0200 In-Reply-To: <87355kinc5.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sat, 01 Apr 2023 00:10:34 +0200") Message-ID: <87bkj9wj9f.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62163 Cc: 62163@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Bruno, Ludovic Court=C3=A8s skribis: > Bruno Victal skribis: > >> On 2023-03-30 11:22, Ludovic Court=C3=A8s wrote: >>>=20 >>> You can send messages to the bitbucket with: >>>=20 >>> (parameterize ((shepherd-message-port (%make-void-port "w0"))) >>> =E2=80=A6) >> >> While it does work for expunging them from mcron log, I noticed that >> these lines are also polluting /var/log/messages and the snippet above >> doesn't handle that. >> Is there perhaps something else I'm missing? > > Nope, you cannot prevent them from ending up in /var/log/messages; they > are purposefully logged. What should we do about this bug? Am I right that the conclusion is that =E2=80=98my-heartbeat-job=E2=80=99 could send herd/shepherd output to = the bit bucket? If yes, we can close this bug. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 27 12:13:08 2023 Received: (at 62163) by debbugs.gnu.org; 27 Apr 2023 16:13:08 +0000 Received: from localhost ([127.0.0.1]:59618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ps4Ez-0002Vc-Hy for submit@debbugs.gnu.org; Thu, 27 Apr 2023 12:13:08 -0400 Received: from smtpm4.myservices.hosting ([185.26.105.235]:35362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ps4Ev-0002Un-44 for 62163@debbugs.gnu.org; Thu, 27 Apr 2023 12:13:04 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm4.myservices.hosting (Postfix) with ESMTP id A090720C96; Thu, 27 Apr 2023 18:12:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 45AB8800C5; Thu, 27 Apr 2023 18:12:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id PP28oUWy87hl; Thu, 27 Apr 2023 18:12:55 +0200 (CEST) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 194E2800C8; Thu, 27 Apr 2023 18:12:50 +0200 (CEST) Message-ID: <51acd0d5-ba5b-8b20-c038-1416fa6ea66b@makinata.eu> Date: Thu, 27 Apr 2023 17:12:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: bug#62163: Suppress logging shepherd evaluation in mcron.log Content-Language: en-US To: =?UTF-8?Q?Ludovic_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> <87y1neo7wz.fsf@gnu.org> <87355kinc5.fsf@gnu.org> <87bkj9wj9f.fsf@gnu.org> From: Bruno Victal In-Reply-To: <87bkj9wj9f.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 62163 Cc: 62163@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Hi Ludo’, On 2023-04-27 14:24, Ludovic Courtès wrote: > Hi Bruno, > > Ludovic Courtès skribis: > >> Bruno Victal skribis: >> >>> On 2023-03-30 11:22, Ludovic Courtès wrote: >>>> >>>> You can send messages to the bitbucket with: >>>> >>>> (parameterize ((shepherd-message-port (%make-void-port "w0"))) >>>> …) >>> >>> While it does work for expunging them from mcron log, I noticed that >>> these lines are also polluting /var/log/messages and the snippet above >>> doesn't handle that. >>> Is there perhaps something else I'm missing? >> >> Nope, you cannot prevent them from ending up in /var/log/messages; they >> are purposefully logged. Perhaps we could have a “low-noise” way to query for running services? (or non modifying actions done on shepherd) Filling /var/log/messages with messages of (IMO) dubious value seems counterproductive. > What should we do about this bug? Am I right that the conclusion is > that ‘my-heartbeat-job’ could send herd/shepherd output to the bit > bucket? If yes, we can close this bug. Parameterizing the shepherd-message-port did cut the shepherd messages from the mcron log, yes. Cheers, Bruno From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 27 23:53:00 2023 Received: (at 62163-done) by debbugs.gnu.org; 28 Apr 2023 03:53:00 +0000 Received: from localhost ([127.0.0.1]:60203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psFAK-0002zV-Bb for submit@debbugs.gnu.org; Thu, 27 Apr 2023 23:53:00 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:62535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psFAF-0002zA-NZ for 62163-done@debbugs.gnu.org; Thu, 27 Apr 2023 23:52:58 -0400 Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-751319e0dbfso493826285a.0 for <62163-done@debbugs.gnu.org>; Thu, 27 Apr 2023 20:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682653969; x=1685245969; 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=nu0CK8Hypk2tRc14ymUPbQ/klAu2jsfUt353HBUKVU4=; b=R1XJHOMuk6Jj8AhQTvOWsNwyY1QJ50HGyFSPA0d35ObaP8wJ9+GQ7gLAh8q05q/xtK 68O4LcgJ+CvROo7L54cY8XZxj8knHeMBY3WTM/zON5wYY+hPpxyMkAxAl17y45CmdtBz 97+Ek7OMCgBlCm+SCRS6bEbB2K6Vl8sQuWpeBGK6OSGs8ZbPCq5OYmmaBSyzIvBaq7Do uqxpKHTObMUiHTQ3jTWg8VDrCdSR9SkycUn39DVWGF99QV+zko7Aa1NIGTAqcDAikYFP 95lBkdQ1TkrQib7dCIrii9SJsgbJ/GKIF2WA7j7jdegFC7ldJ8xbI/pIlUV8B1vBpuqV vdCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682653969; x=1685245969; 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=nu0CK8Hypk2tRc14ymUPbQ/klAu2jsfUt353HBUKVU4=; b=W4eoNo3FMPuOH2unjERsvGhFszCtuZBBTMUBW0thsU/tWagOxMwELvQtZqGs3dP7J9 W1RNwWARkQHsoAPUohdbnA3FYwVgemgXQmtf355sVbjrd8wIhS/263J3PmQkgdhftpxz cWuAm1ZbWRydty4c/rOUi7fZTOA2ub5oQAqIV3JSMp8JrYVGrmhx55gp5kLy8PO2ZhcV 4T4zxfNWwcznDJ2ELNPyscs1QO/fELuZoC05Ctf83yTAHt75xUqDI4/6V2wxHygSpWMd trInHLx1AwgZMpm1qZ2q3r1XXeqYKcMhZFFkF6cfziJvUQTK0MIA7le1qrvKr02UE8U+ GVew== X-Gm-Message-State: AC+VfDz29ro2vRGq2iHyM6mgGP4zCITDcya4KK7Cus3n7TpCaI6MKKU4 CkTSO0WOhSK4qk3OD7z0lMUeJZOlui0= X-Google-Smtp-Source: ACHHUZ7VkEWjxzqqPvJs0ntG50E/Z8K0I2F0LDn5pDgqeK3sgwzxLccRujHxj156YSYm/S4oyjSJxg== X-Received: by 2002:ac8:5c85:0:b0:3e8:e986:b20a with SMTP id r5-20020ac85c85000000b003e8e986b20amr14108056qta.16.1682653969550; Thu, 27 Apr 2023 20:52:49 -0700 (PDT) Received: from hurd ([2607:fad8:4:3::1000]) by smtp.gmail.com with ESMTPSA id 75-20020a370b4e000000b0074df3f7e14esm6489560qkl.67.2023.04.27.20.52.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 20:52:48 -0700 (PDT) From: Maxim Cournoyer To: Bruno Victal Subject: Re: bug#62163: Suppress logging shepherd evaluation in mcron.log 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> <87355kinc5.fsf@gnu.org> <87bkj9wj9f.fsf@gnu.org> <51acd0d5-ba5b-8b20-c038-1416fa6ea66b@makinata.eu> Date: Thu, 27 Apr 2023 23:52:47 -0400 In-Reply-To: <51acd0d5-ba5b-8b20-c038-1416fa6ea66b@makinata.eu> (Bruno Victal's message of "Thu, 27 Apr 2023 17:12:49 +0100") Message-ID: <877ctw64ts.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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62163-done Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , 62163-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Bruno Victal writes: > Hi Ludo=E2=80=99, > > On 2023-04-27 14:24, Ludovic Court=C3=A8s wrote: >> Hi Bruno, >>=20 >> Ludovic Court=C3=A8s skribis: >>=20 >>> Bruno Victal skribis: >>> >>>> On 2023-03-30 11:22, Ludovic Court=C3=A8s wrote: >>>>> >>>>> You can send messages to the bitbucket with: >>>>> >>>>> (parameterize ((shepherd-message-port (%make-void-port "w0"))) >>>>> =E2=80=A6) >>>> >>>> While it does work for expunging them from mcron log, I noticed that >>>> these lines are also polluting /var/log/messages and the snippet above >>>> doesn't handle that. >>>> Is there perhaps something else I'm missing? >>> >>> Nope, you cannot prevent them from ending up in /var/log/messages; they >>> are purposefully logged. > > Perhaps we could have a =E2=80=9Clow-noise=E2=80=9D way to query for runn= ing services? (or non modifying actions done on shepherd) > Filling /var/log/messages with messages of (IMO) dubious value seems coun= terproductive. > >> What should we do about this bug? Am I right that the conclusion is >> that =E2=80=98my-heartbeat-job=E2=80=99 could send herd/shepherd output = to the bit >> bucket? If yes, we can close this bug. > > Parameterizing the shepherd-message-port did cut the shepherd messages fr= om the mcron log, yes. Alright, closing then. What a team :-). --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Wed May 03 16:01:46 2023 Received: (at 62163) by debbugs.gnu.org; 3 May 2023 20:01:46 +0000 Received: from localhost ([127.0.0.1]:47796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puIfa-0001k8-7h for submit@debbugs.gnu.org; Wed, 03 May 2023 16:01:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puIfV-0001js-Da for 62163@debbugs.gnu.org; Wed, 03 May 2023 16:01:45 -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 1puIfP-0000dg-DC; Wed, 03 May 2023 16:01:35 -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=mwjQ2QXcKGLxJwU9cIzZ0Ydhd50oLoaHSCNjOdRjsjE=; b=iZqRK05M/xSWMqlL4cvU SiYx/zPu0/2KRsYdvW9jIgBfknQ+eLTlXD3yYk5H/yKUlsR0XGxhRG4AAqs6Nfb+Iz/gBUZ8AWRDy Xk5DpsUZ7Mw5ersYnuWAejcgBvPibd5RwxboK9awU1Nwv/1nybcg5XIYB8JdzJpshVGrstCX5u6Z1 pLDk31vZBxzcrSzeSHuSWr+4R8a0h9HOjq8BM4mZFk2ruhfFyIsrEFkkyReDB8Gyf496lsQpkAddt y8NJk6rfov4O9C7OoU4CCv/RcUJYH2AofszyIavBdWbt66G3XdgZWCoiaFbD5gS/lETdu2nYdxeRN o4vJPERwXS03TA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puIfP-0005Cy-09; Wed, 03 May 2023 16:01:35 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Bruno Victal Subject: Re: bug#62163: Suppress logging shepherd evaluation in mcron.log 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> <87355kinc5.fsf@gnu.org> <87bkj9wj9f.fsf@gnu.org> <51acd0d5-ba5b-8b20-c038-1416fa6ea66b@makinata.eu> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 14 =?utf-8?Q?Flor=C3=A9al?= an 231 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du =?utf-8?Q?Cham=C3=A9risier?= 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: Wed, 03 May 2023 22:01:33 +0200 In-Reply-To: <51acd0d5-ba5b-8b20-c038-1416fa6ea66b@makinata.eu> (Bruno Victal's message of "Thu, 27 Apr 2023 17:12:49 +0100") Message-ID: <87v8h9yyjm.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62163 Cc: 62163@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Bruno Victal skribis: >>>> While it does work for expunging them from mcron log, I noticed that >>>> these lines are also polluting /var/log/messages and the snippet above >>>> doesn't handle that. >>>> Is there perhaps something else I'm missing? >>> >>> Nope, you cannot prevent them from ending up in /var/log/messages; they >>> are purposefully logged. > > Perhaps we could have a =E2=80=9Clow-noise=E2=80=9D way to query for runn= ing services? (or non modifying actions done on shepherd) > Filling /var/log/messages with messages of (IMO) dubious value seems coun= terproductive. The reasoning was that =E2=80=9Ceval is evil=E2=80=9D, as we know :-), so w= e=E2=80=99d rather log uses of =E2=80=98herd eval root=E2=80=99. Ludo=E2=80=99. From unknown Sun Jun 22 07:58:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 01 Jun 2023 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator