From unknown Sun Jun 15 08:38:49 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#76063 <76063@debbugs.gnu.org> To: bug#76063 <76063@debbugs.gnu.org> Subject: Status: [PATCH 0/3] Switch to the Shepherd's system log Reply-To: bug#76063 <76063@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:38:49 +0000 retitle 76063 [PATCH 0/3] Switch to the Shepherd's system log reassign 76063 guix-patches submitter 76063 Ludovic Court=C3=A8s severity 76063 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 04 17:53:57 2025 Received: (at submit) by debbugs.gnu.org; 4 Feb 2025 22:53:57 +0000 Received: from localhost ([127.0.0.1]:47113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tfRnp-0004pj-Fo for submit@debbugs.gnu.org; Tue, 04 Feb 2025 17:53:57 -0500 Received: from lists.gnu.org ([2001:470:142::17]:60404) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tfRnm-0004pQ-Uu for submit@debbugs.gnu.org; Tue, 04 Feb 2025 17:53:55 -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 1tfRnd-0000ct-Ph for guix-patches@gnu.org; Tue, 04 Feb 2025 17:53:45 -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 1tfRnd-00046g-CX; Tue, 04 Feb 2025 17:53:45 -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:Subject:To:From:in-reply-to: references; bh=DD91qQbzfazdfkljdf1yNl8SiKI3a3KtpEAMKnJhWaM=; b=G74VidtU3EfmMN mklhyzfq01T7/YjGBrMOPjmjsV/etuGrq5+xvCNhi1SHELEePg7ZCcBvYfSAiukYvLTnQ9MyZbFKd sjnFjv06y2kCKpH+rFTz/9MKGtl5lJIAFynJy1+YpIhQVtO5IoELsjRmsJjCt35H/x/JinPBh1VwA 87oG9ZY+mlXH6GhKeFamGR0B4R57HbK53o/PRrXjCoNOZldEkMQPIJfqVP5hL75Nt2VMF3pkIDxpe RhAGAWFE4xzIP7PD3sJMvF5PyNtHC0moWHb1HSJtmeKum0GnIv/tcXZ6zOFdajek46YbzsUEC9Kt/ n9k2jVwneUwBa2kjc1Ew==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH 0/3] Switch to the Shepherd's system log Date: Tue, 4 Feb 2025 23:53:33 +0100 Message-ID: X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Florian Pelz , Julien Lepiller Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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, This patch series switches Guix System from Inetutils’s ‘syslogd’ to the Shepherd’s ‘system-log’. Quoth ‘news.scm’: The advantages of this change are the fact that @code{system-log} can start logging earlier after boot and stop shortly before shutdown, along with full integration with the rest of @command{shepherd}, in particular with the new @command{log-rotation} service. Thoughts? Ludo’. Ludovic Courtès (3): services: Add ‘system-log’ Shepherd service. services: Switch to ‘shepherd-system-log-service-type’ in ‘%base-services’. DRAFT: news: Add entry for ‘system-log’ switch. doc/guix.texi | 72 +++++++++++++++++++++++-- etc/news.scm | 16 +++++- gnu/services/base.scm | 2 +- gnu/services/shepherd.scm | 108 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 192 insertions(+), 6 deletions(-) base-commit: 285a1cb449f60798dc83f7f1016700b4ab2374a8 -- 2.48.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 04 17:58:07 2025 Received: (at 76063) by debbugs.gnu.org; 4 Feb 2025 22:58:07 +0000 Received: from localhost ([127.0.0.1]:47128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tfRrq-00053N-Hp for submit@debbugs.gnu.org; Tue, 04 Feb 2025 17:58:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56410) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tfRro-00052f-Cm for 76063@debbugs.gnu.org; Tue, 04 Feb 2025 17:58:05 -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 1tfRri-0004eg-RK; Tue, 04 Feb 2025 17:57:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=XjoKqwFnSUbj0xT2MojRgNkg/Ts0OTCU7pNN2Lwm6Rs=; b=g7R5RpSrhHpXvPJ+PC/i 3Azp5UIwhiJctbhbKFk1qLkGsz7SrMZ+Xz6HYwDwSMImt23Zi6ub5LBJr7aFiQ/cUWa65Ao+z8nLY IQymvdTUiEh/1B6ROzBVkzshPJiZDFD4w+MLZrsf96KGoh+O7eAosEXP9vHS3LvOqQakD4jqgq4fA ZbM8YvOJl3DyTsmUeHxoapC4sBjSM7nJBhgtRvs/0t8TQ5S8lz/0oHaAHaeXhs4Q6bIJwJ9PdzV3O bh4+WOpVp7sARF5hJJffhMeTi9jGyqpflRp16X/7GnzbPL6SRX+DNJIy8yyJTNLO61120yCDxtP+i IuOx6l8uac3nWQ==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 76063@debbugs.gnu.org Subject: [PATCH 1/3] =?UTF-8?q?services:=20Add=20=E2=80=98system-log?= =?UTF-8?q?=E2=80=99=20Shepherd=20service.?= Date: Tue, 4 Feb 2025 23:57:47 +0100 Message-ID: X-Mailer: git-send-email 2.48.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Ludovic Courtès , Maxim Cournoyer Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76063 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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 (---) * gnu/services/shepherd.scm (gexp-or-integer?) (gexp-or-string?, gexp-or-string-or-false?): New procedures. (system-log-configuration): New record type. (shepherd-system-log-service-type): New variable. * doc/guix.texi (Shepherd Services): Document it. Change-Id: I1e29fe0977eb4f8026ee6a2d2f282e269c8c00b4 --- doc/guix.texi | 55 +++++++++++++++++++ gnu/services/shepherd.scm | 108 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 163 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index bb5f29277f..f52d79d549 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -45757,6 +45757,61 @@ Shepherd Services on the @code{timer} service. @end defvar +@cindex system log service, from Shepherd +@cindex syslogd, Shepherd system log service +@defvar shepherd-system-log-service-type +This service implements a @dfn{system log}, reading messages +applications send to @file{/dev/log} and writing them to files or +terminals according to user-defined rules. It provides functionality +traditionally implemented by @command{syslogd} programs. + +The value of services of this type must be a +@code{system-log-configuration} record, as described below. +@end defvar + +@c %start of fragment + +@deftp {Data Type} system-log-configuration +Available @code{system-log-configuration} fields are: + +@table @asis +@item @code{provision} (default: @code{(system-log syslogd)}) (type: list-of-symbols) +The name(s) of the system log service. + +@item @code{requirement} (default: @code{(root-file-system)}) (type: list-of-symbols) +Dependencies of the system log service. + +@item @code{kernel-log-file} (type: gexp-or-string-or-false) +File from which kernel messages are read, @file{/dev/kmsg} by default. + +@item @code{message-destination} (default: @code{#f}) (type: gexp-or-false) +This gexp must evaluate to a procedure that, when passed a log message, +returns the list of files to write it to; @code{#f} is equivalent to +using @code{(default-message-destination-procedure)}. @pxref{System Log +Service,,, shepherd,The GNU Shepherd Manual}, for information on how to +write that procedure. + +@item @code{date-format} (type: gexp-or-string) +String or string-valued gexp providing a specifying how to format +timestamps in log file. It must be a valid string for @code{strftime}, +including delimiting space---e.g., @code{"%c "} for a format identical +to that of traditional syslogd implementations. + +@item @code{history-size} (type: gexp-or-integer) +Number of logging messages kept in memory for the purposes of making +them available to @command{herd status system-log}. + +@item @code{max-silent-time} (type: gexp-or-integer) +Time after which a mark is written to log files if nothing was logged +during that time frame. + +@end table + +@end deftp + + +@c %end of fragment + @defvar %shepherd-root-service This service represents PID@tie{}1. @end defvar diff --git a/gnu/services/shepherd.scm b/gnu/services/shepherd.scm index 328bfbedff..bc31285cfb 100644 --- a/gnu/services/shepherd.scm +++ b/gnu/services/shepherd.scm @@ -31,6 +31,7 @@ (define-module (gnu services shepherd) #:use-module ((guix diagnostics) #:select (define-with-syntax-properties formatted-message)) #:use-module (gnu services) + #:use-module (gnu services configuration) #:use-module (gnu services herd) #:use-module (gnu packages admin) #:use-module (ice-9 match) @@ -84,6 +85,17 @@ (define-module (gnu services shepherd) shepherd-timer-service-type shepherd-transient-service-type + system-log-configuration + system-log-configuration? + system-log-configuration-provision + system-log-configuration-requirement + system-log-configuration-message-destination + system-log-configuration-date-format + system-log-configuration-history-size + system-log-configuration-max-silent-time + + shepherd-system-log-service-type + assert-valid-graph)) ;;; Commentary: @@ -721,3 +733,99 @@ (define shepherd-transient-service-type This runs @command{rsync} in the background, as a service that you can inspect with @command{herd status} and stop with @command{herd stop}."))) + + +;;; +;;; System log. +;;; + +(define (gexp-or-false? x) + (or (gexp? x) (not x))) + +(define (gexp-or-integer? x) + (or (gexp? x) (integer? x))) + +(define (gexp-or-string? x) + (or (gexp? x) (string? x))) + +(define (gexp-or-string-or-false? x) + (or (gexp-or-string? x) (not x))) + +(define-configuration system-log-configuration + (provision + (list-of-symbols '(system-log syslogd)) + "The name(s) of the system log service." + empty-serializer) + (requirement + (list-of-symbols '(root-file-system)) + "Dependencies of the system log service." + empty-serializer) + (kernel-log-file + (gexp-or-string-or-false #~(kernel-log-file)) + "File from which kernel messages are read, @file{/dev/kmsg} by default." + empty-serializer) + (message-destination + (gexp-or-false #f) + "This gexp must evaluate to a procedure that, when passed a log message, +returns the list of files to write it to; @code{#f} is equivalent to using +@code{(default-message-destination-procedure)}. @pxref{System Log Service,,, +shepherd, The GNU Shepherd Manual}, for information on how to write that +procedure." + empty-serializer) + (date-format + (gexp-or-string #~default-logfile-date-format) + "String or string-valued gexp providing a specifying how to format +timestamps in log file. It must be a valid string for @code{strftime}, +including delimiting space---e.g., @code{\"%c \"} for a format identical to +that of traditional syslogd implementations." + empty-serializer) + (history-size + (gexp-or-integer #~(default-log-history-size)) + "Number of logging messages kept in memory for the purposes of making them +available to @command{herd status system-log}." + empty-serializer) + (max-silent-time + (gexp-or-integer #~(default-max-silent-time)) + "Time after which a mark is written to log files if nothing was logged +during that time frame." + empty-serializer)) + +(define shepherd-system-log-service-type + (shepherd-service-type + 'shepherd-system-log + (lambda (config) + (shepherd-service + (documentation "Shepherd's built-in system log (syslogd).") + (provision (system-log-configuration-provision config)) + (requirement (system-log-configuration-requirement config)) + (modules '((shepherd service system-log) + ((shepherd support) #:select (default-logfile-date-format)) + ((shepherd logger) #:select (default-log-history-size)))) + (free-form + #~(system-log-service #:provision + '#$(system-log-configuration-provision config) + #:requirement + '#$(system-log-configuration-requirement config) + + ;; XXX: As of Shepherd 1.0.1, + ;; 'default-message-destination-procedure' is not + ;; exported, hence this conditional. + #$@(match (system-log-configuration-message-destination + config) + (#f #~()) + (value #~(#:message-destination #$value))) + + #:date-format + #$(system-log-configuration-date-format + config) + #:history-size + #$(system-log-configuration-history-size config) + #:max-silent-time + #$(system-log-configuration-max-silent-time + config))))) + (system-log-configuration) + (description + "The Shepherd's @code{system-log} service plays the role of traditional +@command{syslogd} daemons, reading data logged by daemons to @file{/dev/log} +and writing it to several files in @file{/var/log} according to user-provided +dispatching rules."))) -- 2.48.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 04 17:58:07 2025 Received: (at 76063) by debbugs.gnu.org; 4 Feb 2025 22:58:07 +0000 Received: from localhost ([127.0.0.1]:47130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tfRrr-00053Q-9o for submit@debbugs.gnu.org; Tue, 04 Feb 2025 17:58:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51072) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tfRrp-00052j-A9 for 76063@debbugs.gnu.org; Tue, 04 Feb 2025 17:58:05 -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 1tfRrk-0004ey-0Y; Tue, 04 Feb 2025 17:58:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=0BcDzAwmxdr1kOwYzzTdRRhaNddX0Cq+oz8KR9jqdUA=; b=eeH1DBshORuL9bs/BsEz 0CkbXcxeT86eIOIV+DsYOQxq3H7bIab0nsKyo4bNqUNB3+p0eWYwE94OKBEq88yj3af6wNcKhwBte fHSyk8c6CY+XKSxq24EVnC84FCFNWJbAwjU8KCaUCYpYfwJgXKzVPFCC8WAyvdu8U8sVigQrC39z0 Qc9QoDKDthIjKWSUh6gfIfL/yMy4KyNjDP2kLut3Kg9zh0Qt3toSf25ieEhE/Cum7Phj2QGneyNjX qUEP89YtVnxKZRZUZWi1B9DRYuFEWyhyZMXzdZH0Aj6y2bNTVgxuQiTwTKiO/jr0g3skRizCvf9bw Zk4pHkhtkfHNnQ==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 76063@debbugs.gnu.org Subject: [PATCH 2/3] =?UTF-8?q?services:=20Switch=20to=20=E2=80=98shepherd?= =?UTF-8?q?-system-log-service-type=E2=80=99=20in=20=E2=80=98%base-service?= =?UTF-8?q?s=E2=80=99.?= Date: Tue, 4 Feb 2025 23:57:48 +0100 Message-ID: X-Mailer: git-send-email 2.48.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Ludovic Courtès , Maxim Cournoyer Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76063 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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 (---) * gnu/services/base.scm (%base-services): Replace ‘syslog-service-type’ by ‘shepherd-system-log-service-type’. * doc/guix.texi (Base Services): Update ‘syslog-service-type’ documentation. (Shepherd Services): Mention that ‘system-log-service-type’ is in ‘%base-services’. Add anchor. Change-Id: I21082300f6a052865a6ab1bdff27fbe71f73d492 --- doc/guix.texi | 17 +++++++++++++---- gnu/services/base.scm | 2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index f52d79d549..fa51630852 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -19867,11 +19867,17 @@ Base Services external name servers do not even need to be queried. @end defvar -@cindex syslog -@cindex logging +@cindex syslog, with external syslogd +@cindex logging, syslog @defvar syslog-service-type -Type of the service that runs the syslog daemon, whose value is a -@code{} object. +Type of the service that runs the syslog daemon (@command{syslogd}), +whose value is a @code{} object (see below). + +@quotation Note +This service is redundant with and for the most part superseded by +@code{shepherd-system-log-service-type} (@pxref{shepherd-system-log, the +Shepherd system log}). +@end quotation @end defvar To have a modified @code{syslog-configuration} come into effect after @@ -45757,6 +45763,7 @@ Shepherd Services on the @code{timer} service. @end defvar +@anchor{shepherd-system-log} @cindex system log service, from Shepherd @cindex syslogd, Shepherd system log service @defvar shepherd-system-log-service-type @@ -45767,6 +45774,8 @@ Shepherd Services The value of services of this type must be a @code{system-log-configuration} record, as described below. + +This service is part of @code{%base-services} (@pxref{Base Services}). @end defvar @c %start of fragment diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 7331c030d7..9bd76d3550 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -3722,7 +3722,7 @@ (define %base-services (cons tty %default-console-font)) '("tty1" "tty2" "tty3" "tty4" "tty5" "tty6"))) - (service syslog-service-type) + (service shepherd-system-log-service-type) (service agetty-service-type (agetty-configuration (extra-options '("-L")) ; no carrier detect (term "vt100") -- 2.48.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 04 17:58:10 2025 Received: (at 76063) by debbugs.gnu.org; 4 Feb 2025 22:58:10 +0000 Received: from localhost ([127.0.0.1]:47134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tfRrt-00053j-SS for submit@debbugs.gnu.org; Tue, 04 Feb 2025 17:58:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51088) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tfRrr-000534-Fn for 76063@debbugs.gnu.org; Tue, 04 Feb 2025 17:58:07 -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 1tfRrm-0004fS-5f; Tue, 04 Feb 2025 17:58:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=Dl/idULS348bWisKMLLmi9i31CK7LObX2QZlqyNRdH8=; b=K3CMJs1pLDVvyyqM1RZu vRJ2m8jPeezGIPiL6BASdtiBNA2Kz/tH4hVlj+blsXfIoukkZssNDqDU0E5kEZXWxUyHTvbLaqVgp k+WTVhL30ugtqghGnh/TQgZIPFPREXfqgV4wGtVC4O0oA7EneLKWJ0IyzJsfZTKqcGmw4EowW4AOZ xL/LiXp9PsFN22nWd5UqciQcn0kwDPSgv0XT5Q9h0cvQwcUD1dMSzqHYuwG6NeNo69OX3LmhJdfhW jsKOMumbCXFFOxeIHI6yQasrf/XjeF6jrxzrC1nfvi6H9iXEb8Yk9PDnSYR7Y1j62iuzPfhH1rqsH siOcJlicH3/NIg==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 76063@debbugs.gnu.org Subject: [PATCH 3/3] =?UTF-8?q?DRAFT:=20news:=20Add=20entry=20for=20?= =?UTF-8?q?=E2=80=98system-log=E2=80=99=20switch.?= Date: Tue, 4 Feb 2025 23:57:49 +0100 Message-ID: X-Mailer: git-send-email 2.48.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Florian Pelz , Julien Lepiller Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76063 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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 (---) DRAFT: Update commit ID. * etc/news.scm: Add entry. Change-Id: Ie3d827741a01c95f2bea908b57c707342e8f2386 --- etc/news.scm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/etc/news.scm b/etc/news.scm index dfc64d59cd..5e1b3a8bff 100644 --- a/etc/news.scm +++ b/etc/news.scm @@ -35,7 +35,21 @@ (channel-news (version 0) - (entry (commit "616ae36e0f557cecb4abe58c5b0973b9428d25e0") + (entry (commit "TODO") + (title + (en "Guix System switches to the Shepherd's system log")) + (body + (en "The default system log used on Guix System and part of +@code{%base-services} has been switched from the @command{syslogd} command of +GNU@tie{}Inetutils to the new built-in @code{system-log} service found in +version 1.0 of the Shepherd. + +The advantages of this change are the fact that @code{system-log} can start +logging earlier after boot and stop shortly before shutdown, along with full +integration with the rest of @command{shepherd}, in particular with the new +@command{log-rotation} service."))) + + (entry (commit "616ae36e0f557cecb4abe58c5b0973b9428d25e0") (title (en "Kernel persistent storage in UEFI disabled")) (body -- 2.48.1 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 06 06:59:01 2025 Received: (at 76063) by debbugs.gnu.org; 6 Feb 2025 11:59:01 +0000 Received: from localhost ([127.0.0.1]:54624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tg0X6-0005Jd-HT for submit@debbugs.gnu.org; Thu, 06 Feb 2025 06:59:00 -0500 Received: from relay.yourmailgateway.de ([188.68.63.162]:41219) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tg0X3-0005JI-5t for 76063@debbugs.gnu.org; Thu, 06 Feb 2025 06:58:58 -0500 Received: from mors-relay-8201.netcup.net (localhost [127.0.0.1]) by mors-relay-8201.netcup.net (Postfix) with ESMTPS id 4YpbGn2cTLz3ywS; Thu, 6 Feb 2025 12:58:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1738843121; bh=yQvbrO9fzS3IBSukl4wTj12V6ChfBPTRtBOj+zMQXUw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=RHVGbrckPoilIbbKr9X1LY8aqppd7tA5qdOX8vY7NkIlxapcti+8VLCTgtmUOqPuI 3s5WItm3nb4CL8hzJxBxiSad0BpGAIgZPFb4ncrK/tURu8Xv/UrQFuLfV7BsrLkekC HAiaBMmf/YbWkxtXmt1HIg/iqk+7grPrvdbuYoSMtyRHj8+V80u4FaKkvm/0kwRVnk Ou+FoYq6PuTDKyzQK3fMU/TxPqEO8mljQBLW9M/asTSgTCtd4wi79rcudDnVzRlaGe dizKkzuhESU1ix0EqG1TKmIuwyMzq6sCxCrY9rKEEuIJI5oIr5Xzo80ZcymTH7z0kr SMTvS9ev+9faA== Received: from policy01-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-8201.netcup.net (Postfix) with ESMTPS id 4YpbGn1vfFz3yts; Thu, 6 Feb 2025 12:58:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at policy01-mors.netcup.net X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 required=6.31 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy01-mors.netcup.net (Postfix) with ESMTPS id 4YpbGm3JjGz8tXD; Thu, 6 Feb 2025 12:58:39 +0100 (CET) Received: from florianhp (ipb21a5dbf.dynamic.kabel-deutschland.de [178.26.93.191]) by mxe217.netcup.net (Postfix) with ESMTPSA id 8581C841CE; Thu, 6 Feb 2025 12:58:32 +0100 (CET) From: "pelzflorian (Florian Pelz)" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#76063] [PATCH 3/3] DRAFT: news: Add entry for =?utf-8?B?4oCYc3lzdGVtLWxvZ+KAmQ==?= switch. In-Reply-To: ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Tue, 4 Feb 2025 23:57:49 +0100") References: Date: Thu, 06 Feb 2025 12:58:40 +0100 Message-ID: <87pljv9te7.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Rspamd-Queue-Id: 8581C841CE X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: sfTIdKCG9e6cxZvZTFsnrxMX9iARWDlkEwS+shLkSiaNUaaLo3KbD5og X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76063 Cc: Julien Lepiller , 76063@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 (-) --=-=-= Content-Type: text/plain Nice; could you add this German translation? --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=german-news-for-system-log.diff Content-Transfer-Encoding: quoted-printable diff --git a/etc/news.scm b/etc/news.scm index 5e1b3a8bff..fb46e2c24d 100644 --- a/etc/news.scm +++ b/etc/news.scm @@ -37,7 +37,8 @@ =20 (entry (commit "TODO") (title - (en "Guix System switches to the Shepherd's system log")) + (en "Guix System switches to the Shepherd's system log") + (de "Guix System wechselt zu Shepherds Systemprotokoll")) (body (en "The default system log used on Guix System and part of @code{%base-services} has been switched from the @command{syslogd} command= of @@ -47,7 +48,17 @@ The advantages of this change are the fact that @code{system-log} can start logging earlier after boot and stop shortly before shutdown, along with fu= ll integration with the rest of @command{shepherd}, in particular with the new -@command{log-rotation} service."))) +@command{log-rotation} service.") + (de "Das vorgegebene Systemprotokoll, das auf Guix System benutzt +wird und Teil von @code{%base-services} ist, wurde ausgetauscht und anstel= le +des Befehls @command{syslogd} aus den GNU@tie{}Inetutils wird der neue, in +Version 1.0 von Shepherd eingebaute @code{system-log}-Dienst benutzt. + +Die Vorteile dieser =C3=84nderung sind, dass @code{system-log} schon fr=C3= =BCher nach +dem Start Protokolle aufnehmen kann, kurz vor dem Herunterfahren damit auf= h=C3=B6rt +und au=C3=9Ferdem mit dem Rest von @command{shepherd} voll integriert ist, +insbesondere mit dem neuen Dienst @command{log-rotation} zur +Protokollrotation."))) =20 (entry (commit "616ae36e0f557cecb4abe58c5b0973b9428d25e0") (title --=20 2.48.1 --=-=-= Content-Type: text/plain Regards, Florian --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 06 09:27:09 2025 Received: (at 76063) by debbugs.gnu.org; 6 Feb 2025 14:27:10 +0000 Received: from localhost ([127.0.0.1]:55027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tg2qS-0005Op-7s for submit@debbugs.gnu.org; Thu, 06 Feb 2025 09:27:09 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:60869) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tg2qJ-0005OH-ME for 76063@debbugs.gnu.org; Thu, 06 Feb 2025 09:27:05 -0500 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-21f20666e72so21126235ad.1 for <76063@debbugs.gnu.org>; Thu, 06 Feb 2025 06:26:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738852013; x=1739456813; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aaxMQ5gNfEYb4OX9++CKcIicXCpgWOG+vE4qfVAYsZk=; b=hJsjZvOz7P5CiAP91HWCTyTcUX9+w17ExdM1dT8vLjRKCLBoydCxJ1iNhXbKCSyXlO 52eP52p9ZqlKlVyiH0UfvB+pT/jiYqDR5GvtkNSG/et+0t8vdezJ/rrTNyPjYKs8YBPI 0VThs8ZtEQvwp2AZk7GDdS6iBI5PUUOGaCfm/hUntiQJDBxpkZzke4+cFFLuyzzOJ1u7 mlUBjIpE8CR7oh8//8WYUHhQqb5HH9+CcXk98pGWLDmXVpGbaEhdb5p8Uo9r4lJBunbF 8t6FXVosQfFTBEaX7b5hsXXiywFTD3k6UIwGyF8ur/dqx9pZPwMFyHYaRRDxOrZtctPw jEgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738852013; x=1739456813; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=aaxMQ5gNfEYb4OX9++CKcIicXCpgWOG+vE4qfVAYsZk=; b=JWIX58EqwL706zQvmb/3nvPPJxZUD3xQjyh279y4alQJ6/A6fON/GFQvbKQ0lpmlfV Gu9BQ5OuDW1OgIpBqv3lCunB+7zKr05OEffkyJopEdECeRA2GhvdTi6313vN+V/mZ4AF y/C6FGr76pJxLT2kUI4db/DCYP8fZtgnyNkMspldoOg1i4JCoFlpU4QN33oLI4sjZcjx iV1yi8yfKHAGG+81WzlMpMKB6mmOcWDxxyI5+tRyAe5MCWCW+8ukgnoj1wdVeolExncI 0GHE8dXxbq1Mev/eRfi3DlbZ0D3NH31qDzQfC149VIFCo2YBM/ysebCgLhcg60MD/m0i 46Xg== X-Gm-Message-State: AOJu0YzyBAxf6WOPf+814eBa9fewvFDUap6FAqqe+IOl7+2N+Cg7VFKW LTkLr+bkrkOsDhUpGse6OxiwXqBNWRO1kw4+zYQsyhDQu1j3UwDc7mmZJw== X-Gm-Gg: ASbGncuMlFvLec8pRQlYoHiARUDprXf3qCEuUyV+CgLvg67cHkhfTzc3SjcG6I0fQlR t9cGF5Dyg7qZkLSuI3CBp2nZ41Cy0qD1CB9ul6vpdh5WQ9JyiMDlZww78MegI906EEh2MU8sZqz GRYqhkZ89p0ZDxV12/GVmlAHQgOnnXQ6zqEwQ5gkzOgCzrOwrbyYRV+rmUfn8hKDi37VhfN2Ny+ Y5tF6ce81L/oHUQvev+kUKZJVqiCIdIDpmcM09uW2gbaTaZecorQnvJ2k/PTJ/pEQQ7JRgLkr+R NapM0uycaRmc X-Google-Smtp-Source: AGHT+IGifzwwCUqOfe+O3MyVqkC9hP5MPj/MVigdYwN2FiO5Xwe/DQUacHeoRGk/z3Pg0jDwYNw3vQ== X-Received: by 2002:a17:902:f68c:b0:21b:d105:26b9 with SMTP id d9443c01a7336-21f17e45b7emr119589495ad.16.1738852012398; Thu, 06 Feb 2025 06:26:52 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21f3650cf56sm13516945ad.11.2025.02.06.06.26.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2025 06:26:51 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#76063] [PATCH 1/3] services: Add =?utf-8?B?4oCYc3lzdGVt?= =?utf-8?B?LWxvZ+KAmQ==?= Shepherd service. In-Reply-To: ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Tue, 4 Feb 2025 23:57:47 +0100") References: Date: Thu, 06 Feb 2025 23:26:40 +0900 Message-ID: <87v7tn6ten.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 76063 Cc: 76063@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! Ludovic Court=C3=A8s writes: > * gnu/services/shepherd.scm (gexp-or-integer?) > (gexp-or-string?, gexp-or-string-or-false?): New procedures. > (system-log-configuration): New record type. It's not as apparent due to coming into existence via a syntax, but there many new symbols not listed here (such as each public field accessor). > (shepherd-system-log-service-type): New variable. > * doc/guix.texi (Shepherd Services): Document it. > > Change-Id: I1e29fe0977eb4f8026ee6a2d2f282e269c8c00b4 > --- > doc/guix.texi | 55 +++++++++++++++++++ > gnu/services/shepherd.scm | 108 ++++++++++++++++++++++++++++++++++++++ > 2 files changed, 163 insertions(+) > > diff --git a/doc/guix.texi b/doc/guix.texi > index bb5f29277f..f52d79d549 100644 > --- a/doc/guix.texi > +++ b/doc/guix.texi > @@ -45757,6 +45757,61 @@ Shepherd Services > on the @code{timer} service. > @end defvar >=20=20 > +@cindex system log service, from Shepherd > +@cindex syslogd, Shepherd system log service > +@defvar shepherd-system-log-service-type > +This service implements a @dfn{system log}, reading messages > +applications send to @file{/dev/log} and writing them to files or > +terminals according to user-defined rules. It provides functionality > +traditionally implemented by @command{syslogd} programs. > + > +The value of services of this type must be a > +@code{system-log-configuration} record, as described below. > +@end defvar > + > +@c %start of fragment Neat that you finally embraced define-configuration :-). Side-topic: one day (TM), I'd like to work on a system that'd generate and splice/update these fragments automatically in our doc, avoiding the laborious copy-pasting.=20=20 [...] > diff --git a/gnu/services/shepherd.scm b/gnu/services/shepherd.scm > index 328bfbedff..bc31285cfb 100644 > --- a/gnu/services/shepherd.scm > +++ b/gnu/services/shepherd.scm > @@ -31,6 +31,7 @@ (define-module (gnu services shepherd) > #:use-module ((guix diagnostics) > #:select (define-with-syntax-properties formatted-messag= e)) > #:use-module (gnu services) > + #:use-module (gnu services configuration) > #:use-module (gnu services herd) > #:use-module (gnu packages admin) > #:use-module (ice-9 match) > @@ -84,6 +85,17 @@ (define-module (gnu services shepherd) > shepherd-timer-service-type > shepherd-transient-service-type >=20=20 > + system-log-configuration > + system-log-configuration? > + system-log-configuration-provision > + system-log-configuration-requirement > + system-log-configuration-message-destination > + system-log-configuration-date-format > + system-log-configuration-history-size > + system-log-configuration-max-silent-time > + > + shepherd-system-log-service-type > + > assert-valid-graph)) >=20=20 > ;;; Commentary: > @@ -721,3 +733,99 @@ (define shepherd-transient-service-type >=20=20 > This runs @command{rsync} in the background, as a service that you can i= nspect > with @command{herd status} and stop with @command{herd stop}."))) > + > + > +;;; > +;;; System log. > +;;; > + > +(define (gexp-or-false? x) > + (or (gexp? x) (not x))) > + > +(define (gexp-or-integer? x) > + (or (gexp? x) (integer? x))) > + > +(define (gexp-or-string? x) > + (or (gexp? x) (string? x))) > + > +(define (gexp-or-string-or-false? x) > + (or (gexp-or-string? x) (not x))) > + > +(define-configuration system-log-configuration > + (provision > + (list-of-symbols '(system-log syslogd)) > + "The name(s) of the system log service." > + empty-serializer) > + (requirement > + (list-of-symbols '(root-file-system)) > + "Dependencies of the system log service." > + empty-serializer) > + (kernel-log-file > + (gexp-or-string-or-false #~(kernel-log-file)) > + "File from which kernel messages are read, @file{/dev/kmsg} by defaul= t." > + empty-serializer) > + (message-destination > + (gexp-or-false #f) > + "This gexp must evaluate to a procedure that, when passed a log messa= ge, > +returns the list of files to write it to; @code{#f} is equivalent to usi= ng > +@code{(default-message-destination-procedure)}. @pxref{System Log Servi= ce,,, > +shepherd, The GNU Shepherd Manual}, for information on how to write that > +procedure." I think you should use just @xref here, since it's at the beginning of a sentence and not within parentheses. > + empty-serializer) > + (date-format > + (gexp-or-string #~default-logfile-date-format) > + "String or string-valued gexp providing a specifying how to format s/providing a // > +timestamps in log file. It must be a valid string for @code{strftime}, > +including delimiting space---e.g., @code{\"%c \"} for a format identical= to > +that of traditional syslogd implementations." Perhaps add a reference to @samp{man 3 strftime}. > + empty-serializer) > + (history-size > + (gexp-or-integer #~(default-log-history-size)) > + "Number of logging messages kept in memory for the purposes of making= them > +available to @command{herd status system-log}." > + empty-serializer) > + (max-silent-time > + (gexp-or-integer #~(default-max-silent-time)) > + "Time after which a mark is written to log files if nothing was logged > +during that time frame." > + empty-serializer)) It seems the whole above configuration is not to be serialized, so you should use define-configuration/no-serialization, which would save some boring repetition of 'empty-serializer'. > + > +(define shepherd-system-log-service-type > + (shepherd-service-type > + 'shepherd-system-log > + (lambda (config) I'd bind the record values here using 'match-record', which would make the part below more concise. > + (shepherd-service > + (documentation "Shepherd's built-in system log (syslogd).") > + (provision (system-log-configuration-provision config)) > + (requirement (system-log-configuration-requirement config)) > + (modules '((shepherd service system-log) > + ((shepherd support) #:select (default-logfile-date-form= at)) > + ((shepherd logger) #:select (default-log-history-size))= )) > + (free-form > + #~(system-log-service #:provision > + '#$(system-log-configuration-provision conf= ig) > + #:requirement > + '#$(system-log-configuration-requirement co= nfig) > + > + ;; XXX: As of Shepherd 1.0.1, > + ;; 'default-message-destination-procedure' = is not > + ;; exported, hence this conditional. Perhaps check if we have shepherd >=3D 1.0.2 (?) and put the forward-looking code in this case, with the other code path ready to be removed after some time, if it's easy to check for the shepherd version. > + #$@(match (system-log-configuration-message= -destination > + config) > + (#f #~()) > + (value #~(#:message-destination #$valu= e))) > + > + #:date-format > + #$(system-log-configuration-date-format > + config) Not really relevant here, but that makes me recall that Guile currently lacks monotonic time support (time that can't move backward the adjusting the system clock). It could make funny log time stamps. See in srfi-19.scm: --8<---------------cut here---------------start------------->8--- ;; -- we define it to be the same as TAI. ;; A different implementation of current-time-monotonic ;; will require rewriting all of the time-monotonic converters, ;; of course. (define (current-time-monotonic) ;; Guile monotonic and TAI times are the same. (let ((tai (current-time-tai))) (make-time time-monotonic (time-nanosecond tai) (time-second tai)))) --8<---------------cut here---------------end--------------->8--- which as far as I can see uses CLOCK_REALTIME and not CLOCK_MONOTONIC as it relies on gettimeofday(2), which has this note in its documentation: --8<---------------cut here---------------start------------->8--- The time returned by gettimeofday() is affected by discontinuous ju= mps in the system time (e.g., if the system administrator manually chan= ges the system time). If you need a monotonically increasing clock, = see clock_gettime(2). --8<---------------cut here---------------end--------------->8--- Perhaps we should open an issue in Guile to remember to tacle this deficiency? > + #:history-size > + #$(system-log-configuration-history-size co= nfig) > + #:max-silent-time > + #$(system-log-configuration-max-silent-time > + config))))) > + (system-log-configuration) > + (description > + "The Shepherd's @code{system-log} service plays the role of traditio= nal > +@command{syslogd} daemons, reading data logged by daemons to @file{/dev/= log} Perhaps s/daemons/services/ for the second one, to avoid repetition and clarify these are not the same daemons. > +and writing it to several files in @file{/var/log} according to user-pro= vided > +dispatching rules."))) Perhaps, 'several files under the @file{/var/log} directory, [...]' Other than these small things, it LGTM. Reviewed-by: Maxim Cournoyer --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 06 09:28:09 2025 Received: (at 76063) by debbugs.gnu.org; 6 Feb 2025 14:28:09 +0000 Received: from localhost ([127.0.0.1]:55036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tg2rQ-0005Qy-Ou for submit@debbugs.gnu.org; Thu, 06 Feb 2025 09:28:09 -0500 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:57843) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tg2rN-0005Q7-6V for 76063@debbugs.gnu.org; Thu, 06 Feb 2025 09:28:05 -0500 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-21f40f2bafdso6528845ad.3 for <76063@debbugs.gnu.org>; Thu, 06 Feb 2025 06:28:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738852078; x=1739456878; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2EGQM4+hohZMGsrEuy3dH/OHkZ6WUQCStJzuq5JghNk=; b=RZiLOEN9+RHkgsueMXGT0YFMTrdAg1/hsjwOJfBDC/I3hNLB0TlhJpDYCMrzO9PyqA DdTVg0ZiiRsNfPig9tfgKIE3d8TPXar5ezr5WoVQC2DIhQQ/jOp+PFD6Tk9K7HC4EsAy +zcEyeIBUMkoISIsNQ9uCimj3g86ZD57+Qc0p4v0q62EOjwImpMs8eJ3mQ5hOpWF/11v iGEJd9jU8LZO29k94NGTWL0ta2i49VjpYAd/Bz15R9i7Hk4cGQQNrlBHWt/qPSy/gH05 sAFUpJnb1vLQ/uXkX/DozLvYir9Jv5O5gNTGkv6VHgeODBp8jNm08QIdmkCCGsjBS/9u lrgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738852078; x=1739456878; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=2EGQM4+hohZMGsrEuy3dH/OHkZ6WUQCStJzuq5JghNk=; b=amgjE7YARhGNMC049tcIb7n/H6gx5W4fssNuMo8rOpylzh+xYPANNIukw8mdOiExHl WdGZ0M3aVwHw74asZXmWy6Hhi6o8gj5NluwFCu+0Z3ZDNKoQnAXAX/HUQyAQzY8fPDCo Ic96yDN3MB3unY37zJ27qReFE1CyrX/Ow7VkkGakh22x2BPXyxzLdknZUeY0RCpr5vHq PMQdF31KJoIqYuYbvkM4/cYmm3jBLWvEwizBs/LIlABKRgfJSzo79m1U/FlDv1dlkLwj R/mSrLnU1oec49KV+/m6/49b+utQYhvQlgEau+8l0dh3WbwrccFKHwJ7KBxIJ/xELQrX UtPA== X-Gm-Message-State: AOJu0YzByr4xzL1L7S6WyJ2Kh7AO2M+BNkebkwtY6YuiFMmQyO3heAfj RLuaLQXjY6m/eFiVCSRvetIzVwyaePQaSC6zNvtzE5TTVhYhza96kwn42g== X-Gm-Gg: ASbGnctCw81VPzbyeuZhH/aondr0M5zHGwM9MYN/Z4YV6cuAXma9EcGyx+mTAdeUQOh RS/YFFoxpUFu2Ca34zwYCRIQcVa06nQzPkb2DuWpN3nYF5Of37hYngUtWS845oHGP/aKGxhVt57 at9L/xovuKneTazkbzkoF/nP2a6WG9F+fSFyz0JtiXbOSxCc5n00EElNRcTYDOQ0C1QIZsF5u/R DL7wLPYOynPIaJWFpUzKda7g5T3EXCRnpksWqsb/0QPq0pu94U8fS00duc6ymhc97Moy3TohARN pHeo9At7aimF X-Google-Smtp-Source: AGHT+IGfKCeR6z6eSBmGQ27kcRVG6dk1T5N65uL1nHnFo9QId+eerb5ipFq0cDt2gVlF0znQWoahNQ== X-Received: by 2002:a17:902:d54d:b0:216:6f1a:1c77 with SMTP id d9443c01a7336-21f17f03289mr134002355ad.43.1738852078014; Thu, 06 Feb 2025 06:27:58 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f9e1d77cdcsm3691249a91.16.2025.02.06.06.27.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2025 06:27:57 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#76063] [PATCH 2/3] services: Switch to =?utf-8?Q?=E2=80=98shepherd-system-log-service-type=E2=80=99?= in =?utf-8?Q?=E2=80=98%base-services=E2=80=99=2E?= In-Reply-To: ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Tue, 4 Feb 2025 23:57:48 +0100") References: Date: Thu, 06 Feb 2025 23:27:46 +0900 Message-ID: <87r04b6tct.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 76063 Cc: 76063@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 (-) Ludovic Court=C3=A8s writes: > * gnu/services/base.scm (%base-services): Replace =E2=80=98syslog-service= -type=E2=80=99 > by =E2=80=98shepherd-system-log-service-type=E2=80=99. > * doc/guix.texi (Base Services): Update =E2=80=98syslog-service-type=E2= =80=99 > documentation. > (Shepherd Services): Mention that =E2=80=98system-log-service-type=E2=80= =99 is in > =E2=80=98%base-services=E2=80=99. Add anchor. > > Change-Id: I21082300f6a052865a6ab1bdff27fbe71f73d492 Reviewed-by: Maxim Cournoyer --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 06 09:29:06 2025 Received: (at 76063) by debbugs.gnu.org; 6 Feb 2025 14:29:06 +0000 Received: from localhost ([127.0.0.1]:55040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tg2sL-0005Sc-Tc for submit@debbugs.gnu.org; Thu, 06 Feb 2025 09:29:06 -0500 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:55414) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tg2sJ-0005S8-60 for 76063@debbugs.gnu.org; Thu, 06 Feb 2025 09:29:03 -0500 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-21f40deb941so10182685ad.2 for <76063@debbugs.gnu.org>; Thu, 06 Feb 2025 06:29:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738852137; x=1739456937; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pAujTnC4TaRGxpW38IUgIn5FCj0r9w1yazdlxSLC0R0=; b=iMQ8kJgw/BbdnkO5DNtM6lfDJIH1RuPpbeipwcpjTqBt4q8Jt460BLf9AtWLuB1vKp EL9UCBPpUlrM5RjbcMaJwlZtoWF2ZCY8llGdK8nowX7864IDlvJ6aUc85TY5h4FyJAV0 Zlxm3zxMy8GFRbNbTM0uzvHszmS7uhY99dnY6qNsaUj+u2rp9UCFZN256ysB3MMmwhOH RcKax6VgqM8+8YR9EDZwfJYD8B5GcfvHqAzFMF2Nyiuk+GhD8ZQGlLlxn8MsI0AQKShx GGaT1MlTVWFHp5x84t437W50bjfp/yp+K3jaEqv2F+TWDJfAcunjtyQOPNBY64b892d/ zzZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738852137; x=1739456937; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=pAujTnC4TaRGxpW38IUgIn5FCj0r9w1yazdlxSLC0R0=; b=NpDRTTerhnTl+1wmv1tvuybVTxwcYyofbMMbWQAmAasgQkt9uNMiETBlZys3dtuAgT y5Ur7RPZ1K+lJq+jzeUL3t0tuKrGX7aa1N+bzCNNG+7+J7ASUUlITrJuGaMJC5ysZf6E FBefrMudc9cxfrYziJGFEqVjuTMjcAdVm8DMBs90n32UVFA7WNmUznsxB6bRfIYticnv xspLc4S3G5oDVcakMIViSLrFO3IQ0fYplaz57w6zGW2rnetTiASO6eyHLS9wspRTh17G lHwaKoOoWkYHKmT8+D8uvzGX7CZueGweQL+FHEIiOZqXTtcWlbmAo1HXlKkkcq8C3ubx wZQg== X-Gm-Message-State: AOJu0Ywt/kk3ji7HukNCks1hr80d+5v41uvPDaCGO9lDvbXkMyVLZ/MY L3ox65FLlwBxVtOiPiQehmOWSVrdypXHxeEQ6NJnf/zIDQu61DzT3MzhWQ97 X-Gm-Gg: ASbGncucm+l00xfIHSGDUCz4fyQAF0qpAw6fmQrRU5Q20BSE/G0Xw/+p8MNV7tve+vb y2Txobkq0pr9DUFRwy9CzxbCLQkA73HoNR5jl+RohUy08VlgeHludPlt675j4FKXg0JmZfvwvMf Q9ywgeQoznkug3WuB1hiRXofhSCTpWNs16hebfmHLkEY2XwPaQpZnpicSDSjHTtE2h07vFRPq3z RS3iYpCdtd3rekecaSduwkFFUqHc6dYip15XvhpD33JfvrmGhoU6srADmzRusy0F9E//rpOXCiE yF0lHmk6Xokg X-Google-Smtp-Source: AGHT+IFUhaBbfJrdwtkbEwJaK1oXI9RdbNAOoBiVvk4Y7LNYqZccVEi84pF05qzO4+kdE3Lyuvudhw== X-Received: by 2002:a05:6a20:2d0b:b0:1e0:ca33:8ccf with SMTP id adf61e73a8af0-1ede88a67e0mr15727427637.34.1738852136862; Thu, 06 Feb 2025 06:28:56 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-ad51aecd2fbsm1355985a12.19.2025.02.06.06.28.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2025 06:28:56 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#76063] [PATCH 3/3] DRAFT: news: Add entry for =?utf-8?B?4oCYc3lzdGVtLWxvZ+KAmQ==?= switch. In-Reply-To: ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Tue, 4 Feb 2025 23:57:49 +0100") References: Date: Thu, 06 Feb 2025 23:28:44 +0900 Message-ID: <87msez6tb7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 76063 Cc: Julien Lepiller , 76063@debbugs.gnu.org, Florian Pelz 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 (-) Ludovic Court=C3=A8s writes: > DRAFT: Update commit ID. > > * etc/news.scm: Add entry. > > Change-Id: Ie3d827741a01c95f2bea908b57c707342e8f2386 Reviewed-by: Maxim Cournoyer --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 09 06:05:32 2025 Received: (at 76063) by debbugs.gnu.org; 9 Feb 2025 11:05:32 +0000 Received: from localhost ([127.0.0.1]:43306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1th580-0003io-4M for submit@debbugs.gnu.org; Sun, 09 Feb 2025 06:05:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48314) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1th57x-0003iY-DH for 76063@debbugs.gnu.org; Sun, 09 Feb 2025 06:05:30 -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 1th57r-0002kp-VL; Sun, 09 Feb 2025 06:05:24 -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=vLZCCDSN2Eo0/FEQ6/E0KrqaNno7GhKLpwKZ+Z/bUVM=; b=gI8p2jsCJgINI/aykbUc vy5sTDlFG+UI7bbr0Azf+GuMM1/3y2vNMsqvuMfqmp3z7P/KfCo1kkX4mfwEWysMBO7aSQH05u6Pi +QdAaTRTNQpL8PGaqmP9JOyEEm4Nk90OzuaafYwwAZHvjX0dE+1eOFp7MMnvHfm9H0qW9r1v4HGDe VopO9nBlmsxkEUlaecKRSOIWTJNG9cV6AQv2/j8p5yUWg2sRRuHI5YMN/5D6tqhgIWm7cibVJAqi5 /pEmqtmjEkYRAvt/TxaEg5QiCDixBDqRU1eKs55owdoSXXYgywo3H9+3Qn3PiuhNi6dswQK7wVnar io0pYK3GRu+SBw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: [bug#76063] [PATCH 1/3] services: Add =?utf-8?B?4oCYc3lzdGVt?= =?utf-8?B?LWxvZ+KAmQ==?= Shepherd service. In-Reply-To: <87v7tn6ten.fsf@gmail.com> (Maxim Cournoyer's message of "Thu, 06 Feb 2025 23:26:40 +0900") References: <87v7tn6ten.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Primidi 21 =?utf-8?Q?Pluvi=C3=B4se?= an 233 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du Thlaspi 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: Sun, 09 Feb 2025 12:05:20 +0100 Message-ID: <87pljrtm33.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 76063 Cc: 76063@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: -3.3 (---) Maxim Cournoyer skribis: > Not really relevant here, but that makes me recall that Guile currently > lacks monotonic time support (time that can't move backward the > adjusting the system clock). It could make funny log time stamps. > > See in srfi-19.scm: > > ;; -- we define it to be the same as TAI. > ;; A different implementation of current-time-monotonic > ;; will require rewriting all of the time-monotonic converters, > ;; of course. > > (define (current-time-monotonic) > ;; Guile monotonic and TAI times are the same. > (let ((tai (current-time-tai))) > (make-time time-monotonic > (time-nanosecond tai) > (time-second tai)))) > > > which as far as I can see uses CLOCK_REALTIME and not CLOCK_MONOTONIC as > it relies on gettimeofday(2), which has this note in its documentation: > > The time returned by gettimeofday() is affected by discontinuous = jumps > in the system time (e.g., if the system administrator manually ch= anges > the system time). If you need a monotonically increasing clock,= see > clock_gettime(2). > > Perhaps we should open an issue in Guile to remember to tacle this > deficiency? Yes indeed, that=E2=80=99s a problem! (Monotonic time support is available by other means like =E2=80=98get-internal-run-time=E2=80=99 but it would be good to fix SRFI-19= .) Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 12 11:08:31 2025 Received: (at 76063) by debbugs.gnu.org; 12 Feb 2025 16:08:31 +0000 Received: from localhost ([127.0.0.1]:37934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiFHq-0007q5-NY for submit@debbugs.gnu.org; Wed, 12 Feb 2025 11:08:31 -0500 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:46588) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tiFHo-0007pc-1R for 76063@debbugs.gnu.org; Wed, 12 Feb 2025 11:08:28 -0500 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-220c2a87378so12157965ad.1 for <76063@debbugs.gnu.org>; Wed, 12 Feb 2025 08:08:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739376501; x=1739981301; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=D1k/q6GD01mRc06jJlRdLK4xScb51Lr08mcQhbX9+iw=; b=Ff0t8gbTRX9jKVaMmzyNFj+IaIvpkNr7XMo432TYY7mW5sBpKFCOmrg/Hm4Lv+c30u atl/xo8yvF5/iBrTEcLWFlACX8Xiw0xBoeld9VaKvPx8Q+iRtl4qjs57WDXICEsDom1h eRr2qVd0DXtAalyF+RnMBIfwpVjGaKaW1liwbTJthdjNXiMYdcKdBx7Xm3NiUufvpJQY mW6LZNXNpvlDaOyJ0wIbmj+UUfDjpk5s9tZ39FX2Q0tob3VejD03RBa17yQrQUx6K6jh BM0QjkMLOvOchJQcmpsOgs6ibuhJiOuCO8/T3qP+w0so3ibh1S7VD2Ee3E5LLUTX58Rb CbcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739376501; x=1739981301; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=D1k/q6GD01mRc06jJlRdLK4xScb51Lr08mcQhbX9+iw=; b=MKJqsVHXQrgY4LGaljBgHrA5knAcEhbCT0Zlw94VMndHw2+yIaFG+0KWPoErr9Mlfw SjVhl7loAcAJjkwLVkbbp0vCkihwel1yN9TJf42fI3LIQ4r1FwPHzM/Hylyf3GHbrQeg EwSeXIbOXAYeEK+p3XxmPhAZLoOf5Upsk4YkduloSuZqszcftBLsYmpzvPqIVy7ZH4+7 RwnQoKvxLju8HZWIVdv6ZXh5pTOLG15/kQa4/3oicQQG0QU9/iXii/z/Zdv1+ajVHW72 ZOeZzfPacx1+9L6deHEm8/DrRP60l+aONHG4UQ245axMXtpyOyUUf0PAuTWunSlaUxsV PqiA== X-Gm-Message-State: AOJu0YyDzHTQ+3Vfz/pc7ki+QhTe0jLwEYsUlhtJJcWk5yf+/G2XVxZq va6JLAdzl82+m1J4qU6IxSqsh4xq0Xa+L6jRxRbhZHbYby8PVu3+zoN01g== X-Gm-Gg: ASbGncvSnC/KYP6azvo2XfxMiZAtk69Qw+ofzqFiSMTxN3Kpq5gbkykqamtC5FC4b5v Pj5wBRCliUjnqnFbdseXnfopqW4budStl99q6uer1yFHEndQQVe9csiteB50l/2pEEHB9x1i28U XzZWiluDm+33VqysAWtyPJVDDxm6dYBsR1DksUenAy4uqzfxMjMy8I99MZTtMb179nMinOzUe0r usMgkP7h+nR98TLfV1xsKFST6ghKiMFeCnbjajZ6DB+dQh4lsA/+SpjIfbiuoN2trQs9qI0G12T AF6pGUjxhlso X-Google-Smtp-Source: AGHT+IECbEMVwdiiaCi903K3bH/L1heeGg0ail/b6bo3hcwX5V907pRKHyoRXkRXg/U0eq8PTTBIhg== X-Received: by 2002:a05:6a20:3949:b0:1e1:e2d9:307 with SMTP id adf61e73a8af0-1ee5c7dbef9mr6532260637.33.1739376501455; Wed, 12 Feb 2025 08:08:21 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7309598b5d6sm5208378b3a.16.2025.02.12.08.08.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2025 08:08:20 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#76063] [PATCH 1/3] services: Add =?utf-8?B?4oCYc3lzdGVt?= =?utf-8?B?LWxvZ+KAmQ==?= Shepherd service. In-Reply-To: <87pljrtm33.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sun, 09 Feb 2025 12:05:20 +0100") References: <87v7tn6ten.fsf@gmail.com> <87pljrtm33.fsf@gnu.org> Date: Thu, 13 Feb 2025 01:08:09 +0900 Message-ID: <87h64zno2e.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 76063 Cc: 76063@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, Ludovic Court=C3=A8s writes: > Maxim Cournoyer skribis: > >> Not really relevant here, but that makes me recall that Guile currently >> lacks monotonic time support (time that can't move backward the >> adjusting the system clock). It could make funny log time stamps. [...] >> Perhaps we should open an issue in Guile to remember to tacle this >> deficiency? > > Yes indeed, that=E2=80=99s a problem! > > (Monotonic time support is available by other means like > =E2=80=98get-internal-run-time=E2=80=99 but it would be good to fix SRFI-= 19.) For the record, reported in bug#76227. --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 13 18:10:43 2025 Received: (at 76063) by debbugs.gnu.org; 13 Feb 2025 23:10:43 +0000 Received: from localhost ([127.0.0.1]:46084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiiLy-00028W-BF for submit@debbugs.gnu.org; Thu, 13 Feb 2025 18:10:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44668) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tiiLv-000287-Qo for 76063@debbugs.gnu.org; Thu, 13 Feb 2025 18:10:40 -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 1tiiLq-0001bH-4w; Thu, 13 Feb 2025 18:10:34 -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:Subject:To:From:in-reply-to: references; bh=KJvH9NLF0e9GqOsze5c1FFpd0beiA+aSg+O7d749vt0=; b=hKt6M/9xeg27yH nu+Ku/rXGpsoqow1pcqYyX+SHgLzUrjTHImntlYnkgJpiAt356254rr89RT2JM3nbeB5SOMJlRxUX 91sDIjjsL1Ql7IA14b6S3oG+8xi7oS2Bzr+x1m4GeEO9DfgGl+TvOJIHIIySw1Gv/N2Iqh66hT965 zDi1Ou1TVkp2AzbA/UCGKFB830KajlCcXmXSDpzh+G4dqEPwKE5ldGj2PO1sI4eCiYXzdwvARYKTE TfZGrz8i5hipSdUbiTSiCCetOKEiKO5AuT2ZailrqIt8QhMMBWVTHdaeOnZABXvKwt5Nh837b+Ajx z1JkEcB/krdXC05L8/rg==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 76063@debbugs.gnu.org Subject: [PATCH v2 1/3] =?UTF-8?q?services:=20Add=20=E2=80=98system-log?= =?UTF-8?q?=E2=80=99=20Shepherd=20service.?= Date: Fri, 14 Feb 2025 00:10:10 +0100 Message-ID: <55515c28a50da000da09f7cdb38f3efaf19f0236.1739488125.git.ludo@gnu.org> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Ludovic Courtès , Maxim Cournoyer Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76063 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= , 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 (---) * gnu/services/shepherd.scm (gexp-or-integer?) (gexp-or-string?, gexp-or-string-or-false?): New procedures. (system-log-configuration): New record type. (shepherd-system-log-service-type): New variable. * doc/guix.texi (Shepherd Services): Document it. Reviewed-by: Maxim Cournoyer Change-Id: I1e29fe0977eb4f8026ee6a2d2f282e269c8c00b4 --- doc/guix.texi | 56 +++++++++++++++++++++++ gnu/services/shepherd.scm | 96 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 152 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 278e610194b..0824bc5b0b7 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -45981,6 +45981,62 @@ Shepherd Services on the @code{timer} service. @end defvar +@cindex system log service, from Shepherd +@cindex syslogd, Shepherd system log service +@defvar shepherd-system-log-service-type +This service implements a @dfn{system log}, reading messages +applications send to @file{/dev/log} and writing them to files or +terminals according to user-defined rules. It provides functionality +traditionally implemented by @command{syslogd} programs. + +The value of services of this type must be a +@code{system-log-configuration} record, as described below. +@end defvar + +@c %start of fragment + +@deftp {Data Type} system-log-configuration +Available @code{system-log-configuration} fields are: + +@table @asis +@item @code{provision} (default: @code{(system-log syslogd)}) (type: list-of-symbols) +The name(s) of the system log service. + +@item @code{requirement} (default: @code{(root-file-system)}) (type: list-of-symbols) +Dependencies of the system log service. + +@item @code{kernel-log-file} (type: gexp-or-string-or-false) +File from which kernel messages are read, @file{/dev/kmsg} by default. + +@item @code{message-destination} (default: @code{#f}) (type: gexp-or-false) +This gexp must evaluate to a procedure that, when passed a log message, +returns the list of files to write it to; @code{#f} is equivalent to +using @code{(default-message-destination-procedure)}. @xref{System Log +Service,,,shepherd,The GNU Shepherd Manual}, for information on how to +write that procedure. + +@item @code{date-format} (type: gexp-or-string) +String or string-valued gexp specifying how to format timestamps in log +file. It must be a valid string for @code{strftime} (@pxref{Time,,, +guile,GNU Guile Reference Manual}), including delimiting space---e.g., +@code{"%c "} for a format identical to that of traditional syslogd +implementations. + +@item @code{history-size} (type: gexp-or-integer) +Number of logging messages kept in memory for the purposes of making +them available to @command{herd status system-log}. + +@item @code{max-silent-time} (type: gexp-or-integer) +Time after which a mark is written to log files if nothing was logged +during that time frame. + +@end table + +@end deftp + + +@c %end of fragment + @defvar %shepherd-root-service This service represents PID@tie{}1. @end defvar diff --git a/gnu/services/shepherd.scm b/gnu/services/shepherd.scm index 52588c04e31..cfbb3f1e30a 100644 --- a/gnu/services/shepherd.scm +++ b/gnu/services/shepherd.scm @@ -31,6 +31,7 @@ (define-module (gnu services shepherd) #:use-module ((guix diagnostics) #:select (define-with-syntax-properties formatted-message)) #:use-module (gnu services) + #:use-module (gnu services configuration) #:use-module (gnu services herd) #:use-module (gnu packages admin) #:use-module (ice-9 match) @@ -84,6 +85,17 @@ (define-module (gnu services shepherd) shepherd-timer-service-type shepherd-transient-service-type + system-log-configuration + system-log-configuration? + system-log-configuration-provision + system-log-configuration-requirement + system-log-configuration-message-destination + system-log-configuration-date-format + system-log-configuration-history-size + system-log-configuration-max-silent-time + + shepherd-system-log-service-type + assert-valid-graph)) ;;; Commentary: @@ -658,3 +670,87 @@ (define shepherd-transient-service-type This runs @command{rsync} in the background, as a service that you can inspect with @command{herd status} and stop with @command{herd stop}."))) + + +;;; +;;; System log. +;;; + +(define (gexp-or-false? x) + (or (gexp? x) (not x))) + +(define (gexp-or-integer? x) + (or (gexp? x) (integer? x))) + +(define (gexp-or-string? x) + (or (gexp? x) (string? x))) + +(define (gexp-or-string-or-false? x) + (or (gexp-or-string? x) (not x))) + +(define-configuration/no-serialization system-log-configuration + (provision + (list-of-symbols '(system-log syslogd)) + "The name(s) of the system log service.") + (requirement + (list-of-symbols '(root-file-system)) + "Dependencies of the system log service.") + (kernel-log-file + (gexp-or-string-or-false #~(kernel-log-file)) + "File from which kernel messages are read, @file{/dev/kmsg} by default.") + (message-destination + (gexp-or-false #f) + "This gexp must evaluate to a procedure that, when passed a log message, +returns the list of files to write it to; @code{#f} is equivalent to using +@code{(default-message-destination-procedure)}. @xref{System Log Service,,, +shepherd, The GNU Shepherd Manual}, for information on how to write that +procedure.") + (date-format + (gexp-or-string #~default-logfile-date-format) + "String or string-valued gexp specifying how to format timestamps in log +file. It must be a valid string for @code{strftime} (@pxref{Time,,, guile, +GNU Guile Reference Manual}), including delimiting space---e.g., @code{\"%c +\"} for a format identical to that of traditional syslogd implementations.") + (history-size + (gexp-or-integer #~(default-log-history-size)) + "Number of logging messages kept in memory for the purposes of making them +available to @command{herd status system-log}.") + (max-silent-time + (gexp-or-integer #~(default-max-silent-time)) + "Time after which a mark is written to log files if nothing was logged +during that time frame.")) + +(define shepherd-system-log-service-type + (shepherd-service-type + 'shepherd-system-log + (lambda (config) + (match-record config + (provision requirement message-destination + date-format history-size max-silent-time) + (shepherd-service + (documentation "Shepherd's built-in system log (syslogd).") + (provision (system-log-configuration-provision config)) + (requirement (system-log-configuration-requirement config)) + (modules '((shepherd service system-log) + ((shepherd support) #:select (default-logfile-date-format)) + ((shepherd logger) #:select (default-log-history-size)))) + (free-form + #~(system-log-service #:provision '#$provision + #:requirement '#$requirement + + ;; XXX: As of Shepherd 1.0.1, + ;; 'default-message-destination-procedure' is not + ;; exported, hence this conditional. + #$@(match message-destination + (#f #~()) + (value #~(#:message-destination #$value))) + + #:date-format #$date-format + #:history-size #$history-size + #:max-silent-time #$max-silent-time))))) + (system-log-configuration) + (description + "The Shepherd's @code{system-log} service plays the role of traditional +@command{syslogd} program, reading data logged by daemons to @file{/dev/log} +and writing it to several files in @file{/var/log} according to user-provided +dispatching rules."))) base-commit: 2afb48804e4ff829ed5ed97757fde0a2cd8e39fc -- 2.48.1 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 13 18:10:46 2025 Received: (at 76063) by debbugs.gnu.org; 13 Feb 2025 23:10:46 +0000 Received: from localhost ([127.0.0.1]:46086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiiM2-00028m-9n for submit@debbugs.gnu.org; Thu, 13 Feb 2025 18:10:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44672) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tiiLw-000288-GD for 76063@debbugs.gnu.org; Thu, 13 Feb 2025 18:10:41 -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 1tiiLr-0001bQ-5Y; Thu, 13 Feb 2025 18:10:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=4iJLBwKETYup+huQLayN/kTJuoCYEmXGgkn3R7q/ysI=; b=lFwXCfdeokkFvdyqNc5H hVttlLUBWPq0klHoO2QcLkXTN5jw6+KcI7pUVNPsMMXngbmCIRLdqvzqW0XlvSiWazkzHwLRNY9l0 uTT5wd0mUJpQyLdXWNNSOusLOs/Wu1o+Q7CvsB2QCfntyIyNxGoFYaWtwcRuUmQf5rGAN1xAPliBR nveoVGZG+PILSFZNjdlN++Ao+wy2WLjZW3oZJLJzB1J8yDBTe44kKJivayPP/ysHZcJI8qAjPkG9q /GzrCqzifE3z2jod2GLtorg6AAcVR79t/oTsCVv1+31M6wYMIFFdJ9Ht1gt0ZJbX2qL7QMhyg+sSe 00ZaIqWws8LvFA==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 76063@debbugs.gnu.org Subject: [PATCH v2 2/3] =?UTF-8?q?services:=20Switch=20to=20=E2=80=98sheph?= =?UTF-8?q?erd-system-log-service-type=E2=80=99=20in=20=E2=80=98%base-serv?= =?UTF-8?q?ices=E2=80=99.?= Date: Fri, 14 Feb 2025 00:10:11 +0100 Message-ID: X-Mailer: git-send-email 2.48.1 In-Reply-To: <55515c28a50da000da09f7cdb38f3efaf19f0236.1739488125.git.ludo@gnu.org> References: <55515c28a50da000da09f7cdb38f3efaf19f0236.1739488125.git.ludo@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Ludovic Courtès , Maxim Cournoyer Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76063 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= , 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 (---) * gnu/services/base.scm (%base-services): Replace ‘syslog-service-type’ by ‘shepherd-system-log-service-type’. * doc/guix.texi (Base Services): Update ‘syslog-service-type’ documentation. (Shepherd Services): Mention that ‘system-log-service-type’ is in ‘%base-services’. Add anchor. Reviewed-by: Maxim Cournoyer Change-Id: I21082300f6a052865a6ab1bdff27fbe71f73d492 --- doc/guix.texi | 17 +++++++++++++---- gnu/services/base.scm | 2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 0824bc5b0b7..54c365abf3b 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -19880,11 +19880,17 @@ Base Services external name servers do not even need to be queried. @end defvar -@cindex syslog -@cindex logging +@cindex syslog, with external syslogd +@cindex logging, syslog @defvar syslog-service-type -Type of the service that runs the syslog daemon, whose value is a -@code{} object. +Type of the service that runs the syslog daemon (@command{syslogd}), +whose value is a @code{} object (see below). + +@quotation Note +This service is redundant with and for the most part superseded by +@code{shepherd-system-log-service-type} (@pxref{shepherd-system-log, the +Shepherd system log}). +@end quotation @end defvar To have a modified @code{syslog-configuration} come into effect after @@ -45981,6 +45987,7 @@ Shepherd Services on the @code{timer} service. @end defvar +@anchor{shepherd-system-log} @cindex system log service, from Shepherd @cindex syslogd, Shepherd system log service @defvar shepherd-system-log-service-type @@ -45991,6 +45998,8 @@ Shepherd Services The value of services of this type must be a @code{system-log-configuration} record, as described below. + +This service is part of @code{%base-services} (@pxref{Base Services}). @end defvar @c %start of fragment diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 4bc0433def6..684de754e6d 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -3931,7 +3931,7 @@ (define %base-services (cons tty %default-console-font)) '("tty1" "tty2" "tty3" "tty4" "tty5" "tty6"))) - (service syslog-service-type) + (service shepherd-system-log-service-type) (service agetty-service-type (agetty-configuration (extra-options '("-L")) ; no carrier detect (term "vt100") -- 2.48.1 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 13 18:10:47 2025 Received: (at 76063) by debbugs.gnu.org; 13 Feb 2025 23:10:47 +0000 Received: from localhost ([127.0.0.1]:46088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiiM2-00028o-Po for submit@debbugs.gnu.org; Thu, 13 Feb 2025 18:10:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44676) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tiiLy-00028B-5f for 76063@debbugs.gnu.org; Thu, 13 Feb 2025 18:10:42 -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 1tiiLs-0001bc-De; Thu, 13 Feb 2025 18:10:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=TCrEm5e5bInYcFD0FKJ4HxXbMZ5ZcNOV1HAWiGFYyfk=; b=agHu2D3tZ9Obe3iDAnDC t6pAkCUs2nT+pKRgeq6+nqTqUSefqTfDaD4cJtcn5Li3EfEob+rCcdz5NGg5NW1MhmYcEYHL5OrYY LfSbQpBG8Ohj2HMti6T8yoPT7UJlBbXJnGnJJxVbQ4r6P3MDWT541FvM20914xO6Wgl7qRiozMgP7 8yn7GZ+1mVWwTq7/Pjdp9TSsXZNCXSpjN+6lfhvFvQGhGgL07f02I7xAOi7Cw6RlvuyFrHwzh4eic ZHG+4uO1s3PL1Vm3aMn7PJk31KvHohBt8R9BKAeWViySf3QnP8MVS6IPTg6mLN1/FeBYP5hKd2nGh EpQi2TT00aS5Yg==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 76063@debbugs.gnu.org Subject: [PATCH v2 3/3] =?UTF-8?q?DRAFT:=20news:=20Add=20entry=20for=20?= =?UTF-8?q?=E2=80=98system-log=E2=80=99=20switch.?= Date: Fri, 14 Feb 2025 00:10:12 +0100 Message-ID: <74d1933fcc18944d3a5f03cc08e53141710e21c9.1739488125.git.ludo@gnu.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <55515c28a50da000da09f7cdb38f3efaf19f0236.1739488125.git.ludo@gnu.org> References: <55515c28a50da000da09f7cdb38f3efaf19f0236.1739488125.git.ludo@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Florian Pelz , Julien Lepiller Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76063 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= , Florian Pelz , 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 (---) DRAFT: Update commit ID. * etc/news.scm: Add entry. Reviewed-by: Maxim Cournoyer Co-authored-by: Florian Pelz Change-Id: Ie3d827741a01c95f2bea908b57c707342e8f2386 --- etc/news.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/etc/news.scm b/etc/news.scm index 106a58a2b0a..8c9e1634890 100644 --- a/etc/news.scm +++ b/etc/news.scm @@ -37,6 +37,43 @@ (channel-news (version 0) + (entry (commit "TODO") + (title + (en "Guix System switches to the Shepherd's system log") + (de "Guix System wechselt zu Shepherds Systemprotokoll") + (fr "Guix System passe au journal système de Shepherd") + (body + (en "The default system log used on Guix System and part of +@code{%base-services} has been switched from the @command{syslogd} command of +GNU@tie{}Inetutils to the new built-in @code{system-log} service found in +version 1.0 of the Shepherd. + +The advantages of this change are the fact that @code{system-log} can start +logging earlier after boot and stop shortly before shutdown, along with full +integration with the rest of @command{shepherd}, in particular with the new +@code{log-rotation} service.") + (de "Das vorgegebene Systemprotokoll, das auf Guix System benutzt +wird und Teil von @code{%base-services} ist, wurde ausgetauscht und anstelle +des Befehls @command{syslogd} aus den GNU@tie{}Inetutils wird der neue, in +Version 1.0 von Shepherd eingebaute @code{system-log}-Dienst benutzt. + +Die Vorteile dieser Änderung sind, dass @code{system-log} schon früher nach +dem Start Protokolle aufnehmen kann, kurz vor dem Herunterfahren damit aufhört +und außerdem mit dem Rest von @command{shepherd} voll integriert ist, +insbesondere mit dem neuen Dienst @code{log-rotation} zur +Protokollrotation.") + (fr "Le journal système par défaut sur Guix System, qui fait partie +de @code{%base-services}, est passé de la commande @command{syslogd} de +GNU@tie{}Inetutils au nouveau service @code{system-log} fourni par la version +1.0 du Shepherd. + +Les avantages de ce changement sont le fait que @code{system-log} peut +commencer à enregistrer les journaux plus tôt pendant la séquence de +démarrage et s'arrêter plus tard au moment de l'arrêt, ainsi que son +intégration complète avec le reste de @command{shepherd}, en particulier avec +le nouveau service @code{log-rotation}.")))) + + (entry (commit "0753a17ddf6f4fab98b93c25f1a93b97ff9e46bb") (title (en "The @command{guix deploy} command now supports the Hetzner Cloud -- 2.48.1 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 13 18:14:44 2025 Received: (at 76063) by debbugs.gnu.org; 13 Feb 2025 23:14:44 +0000 Received: from localhost ([127.0.0.1]:46099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiiPr-0002FI-WA for submit@debbugs.gnu.org; Thu, 13 Feb 2025 18:14:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43910) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tiiPp-0002F0-LQ for 76063@debbugs.gnu.org; Thu, 13 Feb 2025 18:14:42 -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 1tiiPk-0001un-9q; Thu, 13 Feb 2025 18:14:36 -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=20zU1oR4gkOC1lJ0VSlVDsIcgydmIdz5XpFZ/jmk8yI=; b=Qf5CcPPqZYY0P7S8iFmm zWMwLuB2h9Ggh52McifRm3mP7/Ww2QjCovG2qVjNrwUeAhFLMy36GDzKIQn1+X3BtLsZRy3qXAdYj VbLNj1IZvwHCHGRXpBHBp7ugau2EpV96DGL6RFJqSO2DhcmFQCanud+5byNDquqU8KMkTuNz2J/cW ZmDEihVmEmbFxuAQI0aqyWh7GFRsT7rLz47S5hvMIjDREJlFLwQl/7mwjYAuGOiNHXUfZNQHGDscM XM53nM7RK7JkqesQcCYdozHf/gxB2d6sa1RCv+XXgJw14m3D3O21dX8oSxjWDzFrh7OOA9a4ETkek 2KQfdv4NgXokwg==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: [bug#76063] [PATCH 1/3] services: Add =?utf-8?B?4oCYc3lzdGVt?= =?utf-8?B?LWxvZ+KAmQ==?= Shepherd service. In-Reply-To: <87v7tn6ten.fsf@gmail.com> (Maxim Cournoyer's message of "Thu, 06 Feb 2025 23:26:40 +0900") References: <87v7tn6ten.fsf@gmail.com> Date: Fri, 14 Feb 2025 00:14:33 +0100 Message-ID: <87bjv51lpi.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 76063 Cc: 76063@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: -3.3 (---) Hi! I=E2=80=99ve sent v2, which addresses all the points you raised, with one exception: Maxim Cournoyer skribis: >> + ;; XXX: As of Shepherd 1.0.1, >> + ;; 'default-message-destination-procedure'= is not >> + ;; exported, hence this conditional. > > Perhaps check if we have shepherd >=3D 1.0.2 (?) and put the > forward-looking code in this case, with the other code path ready to be > removed after some time, if it's easy to check for the shepherd version. > >> + #$@(match (system-log-configuration-messag= e-destination >> + config) >> + (#f #~()) >> + (value #~(#:message-destination #$val= ue))) I kept it as is because we cannot really do what you describe: the conditional would need to go in the default value of =E2=80=98message-destination=E2=80=99, like: #~(if (defined? 'default-message-destination-procedure) (default-message-destination-procedure) #f) But if we did that it=E2=80=99d be hard to not pass #:message-destination i= n the #f case. (Not sure if I=E2=80=99m being clear, I hope you get the idea. :-)) Thanks for looking at it! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 14 20:26:04 2025 Received: (at 76063) by debbugs.gnu.org; 15 Feb 2025 01:26:04 +0000 Received: from localhost ([127.0.0.1]:52476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tj6wW-0001ew-BX for submit@debbugs.gnu.org; Fri, 14 Feb 2025 20:26:04 -0500 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:42454) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tj6wT-0001eH-0C for 76063@debbugs.gnu.org; Fri, 14 Feb 2025 20:26:01 -0500 Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-2f83a8afcbbso4215532a91.1 for <76063@debbugs.gnu.org>; Fri, 14 Feb 2025 17:26:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739582754; x=1740187554; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EGPWXTwQQRIgG48t2qlen63XRuthYRtisUHtS/87dCc=; b=Sqb+mhD1OI6Te7s+8U6+FGgW2867nC5dG1YOVKI0EJx6gJziiSgLhdrJ3zEI0LkYKg r5DwRYef24vrvHnU7PWKmilPlvhQviaoL4ncrsETxDXXzrrmxePeZBcSZsl2dH3AHASu Sx3vkl//vK2SppDI1Kh57oLSdA0m4TXX89+STVq7IT2niFbS+d54Tg2yJ+gBFghAIVgw +XJ+CKIDo4pjHJlVQl1f2yG0T8yssWzFRgwtmV2RjpZRDEiy78BUFtitbWWRvkp4eQTr VfosHAPFen3paOim2bHUBWI1m20XhLOR1xCz/YKnQDulmMBHdw40OXWC+RYSyqdWGHOW 2VMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739582754; x=1740187554; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=EGPWXTwQQRIgG48t2qlen63XRuthYRtisUHtS/87dCc=; b=Qn2ji0N9wZ+Z39eG/t53KquocyPlg3G6Lk2VP6pMmr98F0CufVL7JGFqyZ9n1NCUPA kU5W3mhy6wXa18lqMbL5G9llvbczirUiJTgKDhwb+QycEmoKBs3hBxGqsnPARVILRFjY IRIl6m0BbG23mdb873m6buAopTTMSI9T3KGYFcBS1mvZr9ksA71mzjigi/JbQxsVB+oR st2Q3fAzWwYrmSDoIoPdDWf4VXvzWV4tN9jHSVpt0aemKvIETD0DF02Fw9dDO7RaTww0 OrsEJTjPiWh1/8P3rBLPCdeTA/kvnRazAcR5gKskwW+UzfASLtAGvndISZlTaCoY2T9p Yb5A== X-Gm-Message-State: AOJu0YzE8gQ4JzsHh9El3VR6YGSM9Sp87GhXAt87JKwLI+Z4Kkak398W WvV8/auiAu/c0qNNmVppiaSf9TVd69n3pi1oWby14XEpK3F6OYeB6Xi9gw== X-Gm-Gg: ASbGncum32/1PzHzddEt6mrKcg52o4WjBGqvjdSC4J/QVm6gYsNXxsbCRM5bJvl5Y/p +HbZ+Jwpp7A87d8ozh4yRaGvWukD35SSbJMnbDBp4fawBEbYASrQ5RTBGTqfZTCzrFaP37mUGRm XCEOXw159qgJpDTVJADRb0KV2qG0NGqoiDcGPsSKKNEdLNUcTvShVDI1QLVoNgBuNMRSHwK54BI P5aJLnvkUIH5elZ6YKKqTlOKMVgZ/p/ybGk0VIpM4upmmHwPBe8L5JATUSC5rqVJYm13QvnHTUa 5gfomf6x8FMP X-Google-Smtp-Source: AGHT+IH6uffiZg0hmvcMcORx/uUTqpEo6vuTO0E2vmO1dYTN6olboDie/Pc/aqzbFGlZqNLO9ySWjg== X-Received: by 2002:a17:90b:288c:b0:2fa:1d9f:c80 with SMTP id 98e67ed59e1d1-2fc0fa66b82mr14448442a91.17.1739582754019; Fri, 14 Feb 2025 17:25:54 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2fc13ab1018sm3784656a91.7.2025.02.14.17.25.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Feb 2025 17:25:53 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [PATCH v2 1/3] services: Add =?utf-8?B?4oCYc3lzdGVtLWxvZw==?= =?utf-8?B?4oCZ?= Shepherd service. In-Reply-To: <55515c28a50da000da09f7cdb38f3efaf19f0236.1739488125.git.ludo@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Fri, 14 Feb 2025 00:10:10 +0100") References: <55515c28a50da000da09f7cdb38f3efaf19f0236.1739488125.git.ludo@gnu.org> Date: Sat, 15 Feb 2025 10:25:42 +0900 Message-ID: <87jz9s9ey1.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 76063 Cc: 76063@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 (-) Ludovic Court=C3=A8s writes: > * gnu/services/shepherd.scm (gexp-or-integer?) > (gexp-or-string?, gexp-or-string-or-false?): New procedures. > (system-log-configuration): New record type. > (shepherd-system-log-service-type): New variable. > * doc/guix.texi (Shepherd Services): Document it. > > Reviewed-by: Maxim Cournoyer > Change-Id: I1e29fe0977eb4f8026ee6a2d2f282e269c8c00b4 Reviewed-by: Maxim Cournoyer --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 14 20:26:11 2025 Received: (at 76063) by debbugs.gnu.org; 15 Feb 2025 01:26:11 +0000 Received: from localhost ([127.0.0.1]:52479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tj6wc-0001fJ-QF for submit@debbugs.gnu.org; Fri, 14 Feb 2025 20:26:11 -0500 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:53585) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tj6wb-0001eu-5x for 76063@debbugs.gnu.org; Fri, 14 Feb 2025 20:26:09 -0500 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-22104c4de96so4512685ad.3 for <76063@debbugs.gnu.org>; Fri, 14 Feb 2025 17:26:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739582762; x=1740187562; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sWdNAXBbuIUpRpKHElm2b7vEZsovSn1XtxkRL+kJ1ak=; b=QlU9DURS8Dhrnw+CqaTXWOSqW7dNwW9LwTG8FsZu4oZoKrPecZSckch7qRXKVPBqo2 WqATcImSyOKMgXHpNK7VeGryJD1A2Zl2D10x0wVTABHSqh2h4u7x3Nqgj8JlOfZIOcpW QnS/Z6hnAbPEKHE5j/fXs6ciT3blg+M++41lBJbIq9eKPmIINgOispT6J/PjNPsHWOO2 fjoSKCQm3z62oWA2l0tpt+FxVMk/y7fuwdm79jmIFmqx96CX0beGhxEABlI8Is20tLAs Wz6W0HuncWjMx9yNoLAob/zw7rufk9qNLkuUBHwcBN4e8IFiDj6ocxnwhGWvi1Mx4x+u Qcqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739582762; x=1740187562; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=sWdNAXBbuIUpRpKHElm2b7vEZsovSn1XtxkRL+kJ1ak=; b=eGv1nSNWEMKsP2qlgw4LgYILT130DBDWcmPq2fo/CURAbsd4vFpznuR0l9Eh4PnCYk phUMU82/kdSNLjcL38V5Z8dvXAS3DFsFDb6Jl0xQnvt3z13twrjTUNtqdTgve5iIYBH9 bRqWZpeFLZXRzLp2pD1sviVoPmN+wjq4ZD0pUTvbOlL9Ua8RRtbWL2CWtkfOysZSDUbA IYhnj/WdTRaaPBqs8A7rc4Sqnw1V46vrAvvhZBhCndGNO6KNyHGX2c6itoSeK2SnYibj X7M3T3Uu77DiJqL/rc/lDV/2DAwao6R3BBcgqwEJfqX1DBn5U4liDKMKxpKZmYDOyiOJ GDOg== X-Gm-Message-State: AOJu0YzhgTDgkctP/0/xad4nUdMfPMA+aopT6m6Z85B9e1LrX1DIc7c0 QAomNFU9Mucb3ZQ2mHWk+pyGS7Eg94zSsuiCURk7isKyvwrtP7dihy3Y1w== X-Gm-Gg: ASbGncuuWP2u4LDTTHaoOMW2pQuup0fJrxHBLV8OL8BD3M6Xs7W1Gt12heAPOh1p+O4 MP1wR1LOJsvx/f9NroqT/eJI+P35UE3odBd5nbWImJk/h9xFIIvEzgBq1mbI8mnj2uTQHoQ0O11 5Ig7TAoSwhtM+TgzoAKIEUfdOlFaYSTOQ9+GV2JpyETuFke91s4Dm8BhACUj8uKimOSVo5+DXSH yLdPbpB0Y7CbBymWcocSrCV8pwBSyHiAK013hqGQSl2vrEH+p1e+m/hAcvGVjH6B1nMlUhrzV8I KDCI4p3yOVt0 X-Google-Smtp-Source: AGHT+IEH9WnegIwV9CkA//nrhCOdMPak+n+1qQQ00VQLVBiSogRW9BjD0qkXGEdhFzAJKbnXfo6KSQ== X-Received: by 2002:a17:902:e841:b0:21f:2a2:3c8b with SMTP id d9443c01a7336-221040136bcmr25378495ad.11.1739582762187; Fri, 14 Feb 2025 17:26:02 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-220f26ea127sm15625785ad.96.2025.02.14.17.26.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Feb 2025 17:26:01 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [PATCH v2 2/3] services: Switch to =?utf-8?Q?=E2=80=98shepherd-system-log-service-type=E2=80=99?= in =?utf-8?Q?=E2=80=98%base-services=E2=80=99=2E?= In-Reply-To: ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Fri, 14 Feb 2025 00:10:11 +0100") References: <55515c28a50da000da09f7cdb38f3efaf19f0236.1739488125.git.ludo@gnu.org> Date: Sat, 15 Feb 2025 10:25:49 +0900 Message-ID: <87frkg9exu.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 76063 Cc: 76063@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 (-) Ludovic Court=C3=A8s writes: > * gnu/services/base.scm (%base-services): Replace =E2=80=98syslog-service= -type=E2=80=99 > by =E2=80=98shepherd-system-log-service-type=E2=80=99. > * doc/guix.texi (Base Services): Update =E2=80=98syslog-service-type=E2= =80=99 > documentation. > (Shepherd Services): Mention that =E2=80=98system-log-service-type=E2=80= =99 is in > =E2=80=98%base-services=E2=80=99. Add anchor. > > Reviewed-by: Maxim Cournoyer > Change-Id: I21082300f6a052865a6ab1bdff27fbe71f73d492 Reviewed-by: Maxim Cournoyer --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 14 20:26:18 2025 Received: (at 76063) by debbugs.gnu.org; 15 Feb 2025 01:26:18 +0000 Received: from localhost ([127.0.0.1]:52482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tj6wk-0001fh-6G for submit@debbugs.gnu.org; Fri, 14 Feb 2025 20:26:18 -0500 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:51631) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tj6wi-0001fK-Ab for 76063@debbugs.gnu.org; Fri, 14 Feb 2025 20:26:17 -0500 Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-2fa5af6d743so4216917a91.3 for <76063@debbugs.gnu.org>; Fri, 14 Feb 2025 17:26:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739582770; x=1740187570; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6OYS0ika5O8FzmUi7F0kZklWaLtDFQbhA/rXm9z5xwc=; b=S/6VWHUolyGVfKLaHkV1RVl2KosoqKxGOxKXplx9j8TnQKbgGs0YLJHlhIaiiILegH Aq7Zdux/M5YepjreQ4r1PHcrZZgDUS4axRvh2MEdCO/UeUHje+J7esZXjOlHOQGC21Wa 8gzbGnuriP+Dhuwij4CEgPlvyLKjIunf1GkxtOFLPRwZ8lDPJVdphYAxwxBH2/h2JMYW rXzhZZJee8zsUA6W/7PqLjcGp9WI61VSb2zyy4kQ3+4cg/vymF6hwTKLaLZ9BEZYXewc AWXLDRT1P6rRvxICtypfCjVWfDieurtTAaQfVdQmaPJFW0AP3ZBkPRtUsUgDVaj+TKUu LDiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739582770; x=1740187570; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6OYS0ika5O8FzmUi7F0kZklWaLtDFQbhA/rXm9z5xwc=; b=u53T6eErSA7x2y+BHOl2A/SAn709oyxPWElnT8bNlV+jyhcu4vT1Y8egrCi0CTMoCp wNwCrKzXl37ABrLHKDS+AyyTr5UWNHKcIGaNm+B6vt2MReuWMvAZtk2K5SCKX8VR2tXF 4Y1N+GRLlknU8aWrotnoYY5fdVANVyJv0EbmA33voupUvMmeY9dofrsZrtU9f+KOGQ1b tLfF1gP/YqyI23I53Z0v++fJvKBBgRak+IQMS+2pptkD0dskLzycW6voqNMeCsW9dofp ST47E5pxUIVg+KwsYwtOvTU7oWDrZPeBQFX5JhtloS8PawTAxvn4JCDz0vnw8MyX3ZjN 7qeA== X-Gm-Message-State: AOJu0YzhK5SFyIM/rF2A9OgHH4baC3STHfH6wLXHPKmQ19Hf7GS2muDl 5Mj62LKxKSm0Qr3rNX3afy5sBimutjTR6i4bMcJKvBPH+WJ8DLgO+aR0AA== X-Gm-Gg: ASbGncsw+CipR0ccgtqBhtWJwOZVxvgdlUoItJ25kuaCNe8rpwmKQCSFopYGzgZquZF X7p/2hT7l1Qzxl+RXAPlzLYodfA74/o5BL7ERZ881oPNoTjc6gzzgUsyLnqbd3KRJmkk+aYKVdc 0BeI7cJJwTDeBpbBSG3ahuGACF6Ni52DgkEmlrvTpSqQzC5rMFIhxETF4Lyi0yNaOtegbGhSNVR /aLqPLu64+PQu2A506oL3vN/295NxZyVlFVVJHunzufPIbv0u1oE0Vi1qJdpO1N0bOAZCgZXUlB lZfFmPxy2lsP X-Google-Smtp-Source: AGHT+IFl2EUQOLBUbPItJXKFeGS5nGOdeLUVqElrb+dFMcBCYktsN8f8b5zupZ5JeI+vTLO0UZVKdA== X-Received: by 2002:a17:90b:180e:b0:2ee:f19b:86e5 with SMTP id 98e67ed59e1d1-2fc40f11c94mr2259288a91.14.1739582770436; Fri, 14 Feb 2025 17:26:10 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-220d53490c2sm35237235ad.47.2025.02.14.17.26.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Feb 2025 17:26:09 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [PATCH v2 3/3] DRAFT: news: Add entry for =?utf-8?B?4oCYc3lz?= =?utf-8?B?dGVtLWxvZ+KAmQ==?= switch. In-Reply-To: <74d1933fcc18944d3a5f03cc08e53141710e21c9.1739488125.git.ludo@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Fri, 14 Feb 2025 00:10:12 +0100") References: <55515c28a50da000da09f7cdb38f3efaf19f0236.1739488125.git.ludo@gnu.org> <74d1933fcc18944d3a5f03cc08e53141710e21c9.1739488125.git.ludo@gnu.org> Date: Sat, 15 Feb 2025 10:25:57 +0900 Message-ID: <87bjv49exm.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 76063 Cc: 76063@debbugs.gnu.org, Florian Pelz 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 (-) Ludovic Court=C3=A8s writes: > DRAFT: Update commit ID. > > * etc/news.scm: Add entry. > > Reviewed-by: Maxim Cournoyer > Co-authored-by: Florian Pelz > Change-Id: Ie3d827741a01c95f2bea908b57c707342e8f2386 Reviewed-by: Maxim Cournoyer --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 15 17:06:31 2025 Received: (at 76063-done) by debbugs.gnu.org; 15 Feb 2025 22:06:31 +0000 Received: from localhost ([127.0.0.1]:58370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tjQIx-0005DZ-Hp for submit@debbugs.gnu.org; Sat, 15 Feb 2025 17:06:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44782) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tjQIs-0005DA-R2 for 76063-done@debbugs.gnu.org; Sat, 15 Feb 2025 17:06:29 -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 1tjQIm-00030m-M7; Sat, 15 Feb 2025 17:06:20 -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=ong+ZkTxTuR8tnYcM87k4Z1Jwk4mx8IUb2z38LVH/VU=; b=KLKC/sfAkswaa/cJzj0f oL13isGG9AXNBn/dugYfBuNPje1oZymfkPtF5caCLOAZdh9PyRBBu7PKxCfOBpxGAOMGdy/2ZIPwf X+aL3MHQG2AzdHPKkrSWm0biPWACOnYCepOdbeuv8LMKDz1jeiCpTegBxcRIh6RrAhyiqpfxhpwb7 wr4okHJUD/BICSxSVs11rmJx56Zr0Jb6P47WtPrBkQcB7XkNKCPnUY00qZ6znmBzM9jBAU/Wl2YHB FadFlW/wgYDdI6Rnh7+Q0HeCQyA1TUhliJtFVs/1q4aG870RoYW6UUMANzqN6WlHYtGEH1jJNobdq DmR6uH0JCBA3aw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: [bug#76063] [PATCH v2 1/3] services: Add =?utf-8?B?4oCYc3lz?= =?utf-8?B?dGVtLWxvZ+KAmQ==?= Shepherd service. In-Reply-To: <87jz9s9ey1.fsf@gmail.com> (Maxim Cournoyer's message of "Sat, 15 Feb 2025 10:25:42 +0900") References: <55515c28a50da000da09f7cdb38f3efaf19f0236.1739488125.git.ludo@gnu.org> <87jz9s9ey1.fsf@gmail.com> Date: Sat, 15 Feb 2025 23:06:17 +0100 Message-ID: <87jz9qvp5y.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 76063-done Cc: 76063-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: -3.3 (---) Pushed as 12bd93113c7a2ddf8c1db849550d1c0ae356f039, thank you! Ludo=E2=80=99. From unknown Sun Jun 15 08:38:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Mon, 17 Feb 2025 09:23:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 04:22:33 2025 Received: (at control) by debbugs.gnu.org; 17 Feb 2025 09:22:33 +0000 Received: from localhost ([127.0.0.1]:42800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tjxKi-0008PM-MC for submit@debbugs.gnu.org; Mon, 17 Feb 2025 04:22:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52602) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tjxKg-0008Oo-53 for control@debbugs.gnu.org; Mon, 17 Feb 2025 04:22:30 -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 1tjxKa-0000Ic-OZ for control@debbugs.gnu.org; Mon, 17 Feb 2025 04:22:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:Subject:From:To:Date:in-reply-to: references; bh=4w3hYbEbzKPkvkjQxQasYM/hnkUAUWv5YYxKf9QunBA=; b=KQWaHrpdCZ254y RGeIwpcw5t7OC6gNSZ05wbPpJZvLsQ+VoEpvFAzJE+MZpIsH1OYPPztzwGE2rg9Bb+rQsx+Xt/rRr Ye/gdPLag82VQROcHkWtbwX/V9NaCOcTOjCajhgCDE/Esf/IUe4WHv6Y3kepWWzFuzSpyRLB9oWPw ncbrYns8PiaItN1pZaKHtAjLcSTG66ff8H4jpQkL/kUoKw7FVB/bPnXpwQk4lLcKKmsoq6hluk/Y8 nbzVfMe6dt6/cDgX2tNz16iru9GwdjTd65GaxjSwPsssYDlcFKYn+Nh09oRLqmxOtZ5wHOOMz3NfJ LIXkmMVMOOs1Xb9g1XVw==; Date: Mon, 17 Feb 2025 10:22:22 +0100 Message-Id: <87mselncxd.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #76063 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) reopen 76063 tags 76063 - fixed patch quit From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 04:26:43 2025 Received: (at 76063) by debbugs.gnu.org; 17 Feb 2025 09:26:43 +0000 Received: from localhost ([127.0.0.1]:42841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tjxOh-0000Ms-Hm for submit@debbugs.gnu.org; Mon, 17 Feb 2025 04:26:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35928) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tjxOa-0000Lm-NQ for 76063@debbugs.gnu.org; Mon, 17 Feb 2025 04:26:33 -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 1tjxOV-0000lC-80; Mon, 17 Feb 2025 04:26:27 -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=kcUk65kDZBHyI0ktSg8DWwWh47TNlUp1QJm0T0qeR2Q=; b=paBG1Bzns0tZaMqPk4O7 PPMyc/WGfzSwzMIUrPlU9ZVQ7Xf7xi2ny5Rh5TdK0a1ZVjfqzMIUbR/JLpeB/uFZXQZpU8ddp/x2u lKlhcx929H9jZxgLd502l5msZGSTZlYliDqD3XC3xWSGuE5FTINjeMcs/rirDaRmrja4uOIUQ1o1e PGHY7ipzYKThoPw1P6kWBeNCeBFad8dfE6t8o1QMXB3Sw1h2N1jgM9w9EwCHAKVo6xb0JM3AEWemh gyNaSxDbZGvbGE/gYPcwmBiatTE2r3ccgW4f9Rb7eGaZ45QkA+wbaSYR7dQQqOypGRbazxkCiTKJD t8WlVTiCUDI/ZA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 76063@debbugs.gnu.org Subject: Re: [bug#76063] [PATCH v2 2/3] services: Switch to =?utf-8?Q?=E2=80=98shepherd-system-log-service-type=E2=80=99?= in =?utf-8?Q?=E2=80=98%base-services=E2=80=99=2E?= In-Reply-To: ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Fri, 14 Feb 2025 00:10:11 +0100") References: <55515c28a50da000da09f7cdb38f3efaf19f0236.1739488125.git.ludo@gnu.org> Date: Mon, 17 Feb 2025 10:26:25 +0100 Message-ID: <87frkcorb2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 76063 Cc: 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, Ludovic Court=C3=A8s skribis: > * gnu/services/base.scm (%base-services): Replace =E2=80=98syslog-service= -type=E2=80=99 > by =E2=80=98shepherd-system-log-service-type=E2=80=99. > * doc/guix.texi (Base Services): Update =E2=80=98syslog-service-type=E2= =80=99 > documentation. > (Shepherd Services): Mention that =E2=80=98system-log-service-type=E2=80= =99 is in > =E2=80=98%base-services=E2=80=99. Add anchor. > > Reviewed-by: Maxim Cournoyer > Change-Id: I21082300f6a052865a6ab1bdff27fbe71f73d492 I reverted this commit yesterday in 8c483c12e94bcf43e4c44170f1d5fea5fbba4970 due to deadlocks happening at boot time and reported in . I started investigating; it would seem to be a timing/scheduling issue that shows up when eudev starts. Adding a simple =E2=80=98format=E2=80=99 = call in the =E2=80=98start=E2=80=99 method of eudev appears to =E2=80=9Cfix=E2=80=9D th= e problem. (Never encountered this on my laptop over 6+ months of =E2=80=98system-log= =E2=80=99 usage=E2=80=A6) To be continued=E2=80=A6 Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 04 18:36:33 2025 Received: (at 76063-done) by debbugs.gnu.org; 4 Mar 2025 23:36:33 +0000 Received: from localhost ([127.0.0.1]:33548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tpboO-0005I3-PO for submit@debbugs.gnu.org; Tue, 04 Mar 2025 18:36:33 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:49162) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tpboN-0005Ho-G7 for 76063-done@debbugs.gnu.org; Tue, 04 Mar 2025 18:36:31 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 4CAB060A; Wed, 5 Mar 2025 00:36:24 +0100 (CET) Authentication-Results: hera.aquilenet.fr; none X-Virus-Scanned: Debian amavis at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavis, port 10024) with ESMTP id BLoC3mZN1dB8; Wed, 5 Mar 2025 00:36:23 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 79A571C0; Wed, 5 Mar 2025 00:36:22 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 76063-done@debbugs.gnu.org Subject: Re: [bug#76063] [PATCH v2 2/3] services: Switch to =?utf-8?Q?=E2=80=98shepherd-system-log-service-type=E2=80=99?= in =?utf-8?Q?=E2=80=98%base-services=E2=80=99=2E?= In-Reply-To: <87frkcorb2.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 17 Feb 2025 10:26:25 +0100") References: <55515c28a50da000da09f7cdb38f3efaf19f0236.1739488125.git.ludo@gnu.org> <87frkcorb2.fsf@gnu.org> Date: Wed, 05 Mar 2025 00:36:21 +0100 Message-ID: <87h64874i2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Server: hera X-Rspamd-Queue-Id: 4CAB060A X-Spamd-Result: default: False [4.90 / 15.00]; SPAM_FLAG(5.00)[]; BAYES_HAM(-3.00)[100.00%]; NEURAL_SPAM(3.00)[1.000]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TAGGED_RCPT(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; FREEMAIL_CC(0.00)[gmail.com] X-Spamd-Bar: ++++ X-Rspamd-Action: no action X-Spam-Level: **** X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 76063-done Cc: 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.0 (/) Ludovic Court=C3=A8s skribis: > Ludovic Court=C3=A8s skribis: > >> * gnu/services/base.scm (%base-services): Replace =E2=80=98syslog-servic= e-type=E2=80=99 >> by =E2=80=98shepherd-system-log-service-type=E2=80=99. >> * doc/guix.texi (Base Services): Update =E2=80=98syslog-service-type=E2= =80=99 >> documentation. >> (Shepherd Services): Mention that =E2=80=98system-log-service-type=E2=80= =99 is in >> =E2=80=98%base-services=E2=80=99. Add anchor. >> >> Reviewed-by: Maxim Cournoyer >> Change-Id: I21082300f6a052865a6ab1bdff27fbe71f73d492 > > I reverted this commit yesterday in > 8c483c12e94bcf43e4c44170f1d5fea5fbba4970 due to deadlocks happening at > boot time and reported in . Now that the issues that were reported have been fixed (they were actually unrelated to system-log), I have reinstated it: f785ff154c0 news: Add entry for =E2=80=98system-log=E2=80=99 switch. 8492a3c8962 services: Switch to =E2=80=98shepherd-system-log-service-type= =E2=80=99 in =E2=80=98%base-services=E2=80=99. Ludo=E2=80=99. From unknown Sun Jun 15 08:38:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 02 Apr 2025 11:24:29 +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