From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uMuFI1y5fmdkxQAAqHPOHw:P1 (envelope-from ) for ; Wed, 08 Jan 2025 17:43:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id uMuFI1y5fmdkxQAAqHPOHw (envelope-from ) for ; Wed, 08 Jan 2025 18:43:56 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=UBLEriSb; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=PxaJSGda; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736358236; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=5W+NXjJi9V333h45hnkop5N/CAKm2nLQyyDzKMRC8tA=; b=jCgkjkwnblK753UmbK97S1zLlGY3QES5aHgZ1yRCgcnIhWsSWrhS+8Wqs4EfJjIE3shELR P2fNSneQIM9RNQkzHc60dvkFk5QPUYlYJM+ocGylR22LxwqbOs7VVwqcM0T0ukAFAIew/B erm1idy+PiO2qlLTZX3/HKhJnZH0t88QH6fCslzvRUUAB5zfgWIW3A5tZyRJQFw80KQvHC SivoxdRPFBM8k7bnPvrb9uEDVLnEDVeitws/WFMdNoMqXu+Yw5idFr21p8M1SfBAhgAAB1 RAR/JviYMaJ7LHY80kGyqp5jqWs4rUeU3uy6vd983jtgxYTMz03ECUpLovuydg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=UBLEriSb; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=PxaJSGda; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736358236; a=rsa-sha256; cv=none; b=pV0999E99J9hsvwqd6xDgp+2+d4Ywv/H67k5x59jbx0jhNvpUFbbcKQqCpafsB8F2fkNAk 3B8CjldGP1zR/+tRoOsybyI96Dk6NBUq7wXa/dzQUGfP2Hvy/TkTJm+JMNq92d9gKJXPyn pB5s9L06yHnd5xSH6M39+jGHwFrCwzYRcFWJYpArwvwSEwWCWRkHq+SKWHXzUj3uNEKYFa B1PPpHNAR26xQebQy0LFaqXLss11AanB+1a3XdmlYuleGJg+dVOpK6NNMsQUOiuV4fOdQZ aLtR1ADGaPeDxlRhTF822DiHyJ8rzwuhKrflixlMUpCI+xXxPclg5V99afxlVw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 57F123543 for ; Wed, 08 Jan 2025 18:43:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVa5Y-0005gz-B6; Wed, 08 Jan 2025 12:43:28 -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 1tVa5C-0005Ve-4h for guix-patches@gnu.org; Wed, 08 Jan 2025 12:43:07 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tVa5B-0003A4-5f; Wed, 08 Jan 2025 12:43:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=5W+NXjJi9V333h45hnkop5N/CAKm2nLQyyDzKMRC8tA=; b=UBLEriSbdbSoq0f7K7s2ap0TPoWcFqFx0sTNKXPtmvXsOK+MgRDxLH9i9Lm/UqMz3I2I51q51qgT1KmzpYLz6/LHW/3ekXhEWEn63TMZ1e45j440o9dzmYQjpgRmoXKv0SzJgoYT1ToR0ZPHbZ3GR29ZPHFkfQ4Hmkro7WHaCBa9jwSbaEHgcpb1Jp3NVtxwzZOdr48BlJThY2ltDClfsauSENdtn8DPLsL8BnqsbjA1YoJDfZMU1K7+6pvKham37xHxNgUxHAXue6kLCtHLNKdyjFQijtTDyzOyJHyK/DX+jkB0VpapV17VDVitfQAs369O4DZUJIqmB3Ei165E1A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVa5B-0007sk-1H; Wed, 08 Jan 2025 12:43:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74860] [PATCH v2 07/12] services: rottlog: Deprecate. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Wed, 08 Jan 2025 17:43:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74860 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74860@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Maxim Cournoyer X-Debbugs-Original-Xcc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Maxim Cournoyer Received: via spool by 74860-submit@debbugs.gnu.org id=B74860.173635815930156 (code B ref 74860); Wed, 08 Jan 2025 17:43:04 +0000 Received: (at 74860) by debbugs.gnu.org; 8 Jan 2025 17:42:39 +0000 Received: from localhost ([127.0.0.1]:48800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVa4l-0007qE-1k for submit@debbugs.gnu.org; Wed, 08 Jan 2025 12:42:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60038) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tVa4f-0007oQ-Lk for 74860@debbugs.gnu.org; Wed, 08 Jan 2025 12:42:34 -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 1tVa4a-0002un-Cp; Wed, 08 Jan 2025 12:42:28 -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=5W+NXjJi9V333h45hnkop5N/CAKm2nLQyyDzKMRC8tA=; b=PxaJSGdae/XXg6i8jNkV yFmk29MJ3AFCpXeX8m1nEw2zynBf6XOdC0hq37KcV/Gz+6cq1CIkGycSVUfPDy6r39LvvXcHyk7pg tJMdf2GIf8fOWdudKJCC8tletP7LSoP6OFAce0XTuSG5MY2EoG/Zb5mHjTgjNokgvlEowj6zeLEwG wb4oBYFrKbVBQAeW8AA6Z5miw/xNH1hNeMXKYAtl7e4ugDATAYKFn8gGnA6ISBIO6nZOWS1gxUQvd MUhivBI9ScR3SQSysF4grU3Msbmno+AN3hUDNx3QHVW3ELG3T5leLBwG2djK5l0K+AVC4hM+oTq+y qavnwvO8rJ6qwQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Wed, 8 Jan 2025 18:41:51 +0100 Message-ID: <4f57aed0863887c7b7555ae926f3c102f86f4f09.1736357737.git.ludo@gnu.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -2.18 X-Spam-Score: -2.18 X-Migadu-Queue-Id: 57F123543 X-TUID: 75OrvCtzBeTz * gnu/services/admin.scm (rottlog-service-type): Deprecate. * doc/guix.texi (Log Rotation): Add deprecation warning. Change-Id: I661666ff3de64a69ff4f4982d7f432fd575c36df --- doc/guix.texi | 7 +++++++ gnu/services/admin.scm | 9 +++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 3feeb460c8..8ed5c16dda 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -20952,6 +20952,13 @@ Log Rotation rotation tool (@pxref{Top,,, rottlog, GNU Rot[t]log Manual}), is also provided. +@quotation Warning +The Rottlog service presented here is deprecated in favor of +@code{log-rotation-service-type} (see above). The +@code{rottlog-service-type} variable and related tools will be removed +after 2025-06-15. +@end quotation + The example below shows how to extend it with an additional @dfn{rotation}, should you need to do that (usually, services that produce log files already take care of that): diff --git a/gnu/services/admin.scm b/gnu/services/admin.scm index f0cb94cd64..f58fc5494e 100644 --- a/gnu/services/admin.scm +++ b/gnu/services/admin.scm @@ -38,6 +38,7 @@ (define-module (gnu services admin) #:use-module (gnu system accounts) #:use-module ((gnu system shadow) #:select (account-service-type)) #:use-module ((guix store) #:select (%store-prefix)) + #:use-module (guix deprecation) #:use-module (guix gexp) #:use-module (guix modules) #:use-module (guix packages) @@ -341,12 +342,16 @@ (define (rottlog-jobs-or-default config) (or (rottlog-configuration-jobs config) (default-jobs (rottlog-configuration-rottlog config)))) -(define rottlog-service-type +;; TODO: Deprecated; remove sometime after 2025-06-15. +(define-deprecated rottlog-service-type + log-rotation-service-type (service-type (name 'rottlog) (description "Periodically rotate log files using GNU@tie{}Rottlog and GNU@tie{}mcron. -Old log files are removed or compressed according to the configuration.") +Old log files are removed or compressed according to the configuration. + +This service is deprecated and slated for removal after 2025-06-15.") (extensions (list (service-extension etc-service-type rottlog-etc) (service-extension mcron-service-type rottlog-jobs-or-default) -- 2.47.1