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 +DJKKxx6D2QyEgAASxT56A (envelope-from ) for ; Mon, 13 Mar 2023 20:31:40 +0100 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 2HQyKxx6D2QQUAEA9RJhRA (envelope-from ) for ; Mon, 13 Mar 2023 20:31:40 +0100 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 6E3342CCF7 for ; Mon, 13 Mar 2023 20:31:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbnsx-0003EI-BV; Mon, 13 Mar 2023 15:31: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 1pbnst-0003Cq-0f for guix-patches@gnu.org; Mon, 13 Mar 2023 15:31: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 1pbnss-0008N7-KZ for guix-patches@gnu.org; Mon, 13 Mar 2023 15:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pbnss-0003Hr-GD for guix-patches@gnu.org; Mon, 13 Mar 2023 15:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62169] [PATCH 1/3] services: mcron: Restyle mcron-configuration. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Mar 2023 19:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62169 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62169@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 62169-submit@debbugs.gnu.org id=B62169.167873585912612 (code B ref 62169); Mon, 13 Mar 2023 19:31:02 +0000 Received: (at 62169) by debbugs.gnu.org; 13 Mar 2023 19:30:59 +0000 Received: from localhost ([127.0.0.1]:35663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbnsp-0003HM-0u for submit@debbugs.gnu.org; Mon, 13 Mar 2023 15:30:59 -0400 Received: from smtpm3.myservices.hosting ([185.26.105.234]:59588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbnsm-0003H2-QS for 62169@debbugs.gnu.org; Mon, 13 Mar 2023 15:30:57 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm3.myservices.hosting (Postfix) with ESMTP id 4275F20FB2 for <62169@debbugs.gnu.org>; Mon, 13 Mar 2023 20:30:56 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id E4A3E800A4; Mon, 13 Mar 2023 20:30:52 +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 too7TPuiRYE9; Mon, 13 Mar 2023 20:30:52 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-119-177.dsl.telepac.pt [85.242.119.177]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 6E30B800A0; Mon, 13 Mar 2023 20:30:52 +0100 (CET) From: Bruno Victal Date: Mon, 13 Mar 2023 19:30:48 +0000 Message-Id: X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678735900; a=rsa-sha256; cv=none; b=hl3SM4sSB9YkUmw2/rEK8fGF9n63TxV/UjWtVYsQu+MYGBLmC1MqI1IzZcRRgH0UAUi7qq kTsDLPQaRjtkeZtLESUE2DGIWOEPzmC8i8/oYLKWTWH/1KRRWlScVgzhGkZfw41JE+E4Lt Pa4i4lfNCVwlfQLjsGy2WOKOhjX6Hn2uJDnM8pNCOZhNwXo6CAW7lKD7+g7E5qJgBfiMkG e+eXJKlIHnetBTD8vWWCmZk/9isAm7+y3tooEUVRENF1gjhPYwMMZSpvtU9JwaRKOdhgdz 8bhLpl3hp1Zt6prg8w/RiAUTW5pPoo9b8DpmM+Juy6n5QfJr3V+BMbNL3AnAHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678735900; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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; bh=iV+wktiLz8d7V+EPsKCkEQ3fXNpg5CJcmwNoqWmnOgE=; b=tsdghNV1zL5w52yeoLF0c8i6GM4YZgsvqoxO0nV7+19Obyx3iTEMh4MeQiQIaBj2FdeEAX CHSr04txkjTHL7wvqW4/yJGv0n7KTe6Na995z3Wu4QYBqqyDaxM28sC8dadogtaXnM4Ck+ AUV5S5YN4s+HM55qfGDZi+2Ge7Xg/YSZl1mo+iBZQQ5MeNUzRlw/sVHpw4Z1a5IuMwx3Vx k87FCgvDmjtzylUMzJS2wNhUTWRmC6tueIJrMiN7wxu9z8YKiarUQ4M7IhpFXp6lP9yGTF ralzhfLtHjc9EPLjFNgBa8BYjxe5HGXrUP+GFfpVc2VM+r6R1lGz/irRH35zkg== X-Migadu-Spam-Score: -1.72 X-Spam-Score: -1.72 X-Migadu-Queue-Id: 6E3342CCF7 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-TUID: z2hBDGxtMJh4 * doc/guix.texi (Scheduled Job Execution): Sync doc with source. * gnu/services/mcron.scm (mcron-configuration): Restyle. [log-format]: Fix incorrectly formatted text. --- doc/guix.texi | 2 +- gnu/services/mcron.scm | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 39932d5aad..45d96b8fbb 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -19349,7 +19349,7 @@ Scheduled Job Execution @item @code{log-format} (default: @code{"~1@@*~a ~a: ~a~%"}) (type: string) @code{(ice-9 format)} format string for log messages. The default value -produces messages like "@samp{@var{pid} @var{name}: @var{message}"} +produces messages like @samp{@var{pid} @var{name}: @var{message}} (@pxref{Invoking mcron, Invoking,, mcron,GNU@tie{}mcron}). Each message is also prefixed by a timestamp by GNU Shepherd. diff --git a/gnu/services/mcron.scm b/gnu/services/mcron.scm index 52332d6123..6ee333f253 100644 --- a/gnu/services/mcron.scm +++ b/gnu/services/mcron.scm @@ -56,18 +56,25 @@ (define list-of-gexps? (list-of gexp?)) (define-configuration/no-serialization mcron-configuration - (mcron (file-like mcron) "The mcron package to use.") + (mcron + (file-like mcron) + "The mcron package to use.") + (jobs (list-of-gexps '()) "This is a list of gexps (@pxref{G-Expressions}), where each gexp corresponds to an mcron job specification (@pxref{Syntax, mcron job specifications,, mcron, GNU@tie{}mcron}).") - (log? (boolean #t) "Log messages to standard output.") + + (log? + (boolean #t) + "Log messages to standard output.") + (log-format (string "~1@*~a ~a: ~a~%") "@code{(ice-9 format)} format string for log messages. The default value -produces messages like \"@samp{@var{pid} @var{name}: -@var{message}\"} (@pxref{Invoking mcron, Invoking,, mcron, GNU@tie{}mcron}). +produces messages like @samp{@var{pid} @var{name}: @var{message}} +(@pxref{Invoking mcron, Invoking,, mcron, GNU@tie{}mcron}). Each message is also prefixed by a timestamp by GNU Shepherd.")) (define (job-files mcron jobs) -- 2.39.1