From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id GBw7GB30fmeqPQEAe85BDQ:P1 (envelope-from ) for ; Wed, 08 Jan 2025 21:54:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GBw7GB30fmeqPQEAe85BDQ (envelope-from ) for ; Wed, 08 Jan 2025 22:54:37 +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=Teh13hbB; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=BAyYKBk1; 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=1736373277; 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=emTGtHy+fK6l0puxRTyccYSeAJFk1ZfY4yWYha0ivCk=; b=g3Hu7o9hWVMGwV00wNJD1//9o0I2v4FHg2/0L8FFifcLGeIpeKpJlLmyU9oU/Uh/H1oOD5 dbiZtGIpmoY8r839LOVBx5CNcO8yt9aCbHftw/m0VVBy64YpIqdjsKczeQnz3X3fmvFsdb S4qXadzmEHNjm13zV3aBir/b4rEEzvktnnMc7I3fqmiBJsI8BPAbgTMjW4DQRmCPdwBGvC O/kxFX4OAlN6YSK8nCi4M7A/Cj55UxyZicdppRvhfzK2ZTAL0jK/92W9y6bszyR+TXyB/j a/EwCApahYMo9A7GVqP+982Or6H4d3Nje/hkwm7igd16VaQ//83Kl9t3rjk2Og== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Teh13hbB; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=BAyYKBk1; 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=1736373277; a=rsa-sha256; cv=none; b=HFoGxGzFiCsuMTie6pX0JqypjX2ei3v1ITUDl1512ZZFZ3Q+BAKrN2WOh4IhLke355dFoH M9biE92Ygy0mlPcsXZ0ww9rpQbkVCFVqS7yKCVm7nAJT7ssdy2jUBxFtIppsH84mcQ2IhY MJblR0d1/QbNbVTsVh7qsBzTUusmxMKsDGGwKCrkTpcKCzKLf7NA8lnFD6HiW6wExyVrZs 19NDUGpzj0UvCF7ulwJyQk/Qy5G+HaP9kMbgx81at1yuTJQwpJWoGmn5uBhD5Y2/7gFT4i h8XfJJqiLUQGl29guEP7a7aqaWPvshy2GRPqSNawSTb8xF/P5QyoP3uXYmzg+g== 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 4A55A9CAF1 for ; Wed, 08 Jan 2025 22:54:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVe0U-0000zF-Sl; Wed, 08 Jan 2025 16:54:30 -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 1tVe03-000069-Oq for guix-patches@gnu.org; Wed, 08 Jan 2025 16:54:04 -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 1tVe03-0004GT-Fc; Wed, 08 Jan 2025 16:54:03 -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=emTGtHy+fK6l0puxRTyccYSeAJFk1ZfY4yWYha0ivCk=; b=Teh13hbBXXQjM+FCuFszZksJYDX2EDf2QrZX8hGGAxop1aUuH+lhauNynV7RcYzVEQJxjZ933DRRETWdE4Z1sCaLe4uc5yeLenLlrocau2vtDi3NZ+g6lmIk6bPDxZNDK4sqd/Ym36rsX3IvoeA8PRrgF1KCD1GSbBcJ7E33gm1hb15uzBKaD0K5W7DjOURO/UwMIyDtue4sHsHP98E3BMPLIDsoDB8ZYdXg36iHMhvBiqQz7bzFKArzTuXqFNMfmAuKzYAwXOFSyE7vcwoN73AAPYiwXAd7Kt8AqmwD7NpRQ4ZSqo0zKsesT9yjoY5rCNjetSbdb+8yPPFg4KELxA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVe03-0005Xh-Ar; Wed, 08 Jan 2025 16:54:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74860] [PATCH v3 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 21:54:03 +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.173637319121174 (code B ref 74860); Wed, 08 Jan 2025 21:54:03 +0000 Received: (at 74860) by debbugs.gnu.org; 8 Jan 2025 21:53:11 +0000 Received: from localhost ([127.0.0.1]:49312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVdzC-0005VJ-CH for submit@debbugs.gnu.org; Wed, 08 Jan 2025 16:53:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37992) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tVdz5-0005Sh-Ck for 74860@debbugs.gnu.org; Wed, 08 Jan 2025 16:53:04 -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 1tVdz0-00046b-1h; Wed, 08 Jan 2025 16:52: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=emTGtHy+fK6l0puxRTyccYSeAJFk1ZfY4yWYha0ivCk=; b=BAyYKBk10aNYZ9ue1S2c 4PUXkj+rsYhzPTXjYYAyCXyAtFg1+Pwt5eRbzGwdkY3P71IqVRjU+0VlMpaWhUO3bCif/KqbuRmvg mmTAv4uNZJkLhT/6VBKpVCISW2AoX8Fi8o/L7Fpy1ulWmVhMU++N7cAry5Od4+SEQH79IG9hdjSW1 zx3Os0nu8RUZWzT5OFPeztaA1Hw3f+IG0nq7bibQbZ7QXg+Y6vGh2cSso9Vo6nKqj3KUGHtKUQrGQ 0MoKlI3nneLpyV48fuiGoEvbsoX/NDcVQmUeVHeUT6jXHrTa0xdvj0Rg+F5KGaSYlhg3487NQN39o FyCsa4AK42AjZg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Wed, 8 Jan 2025 22:51:55 +0100 Message-ID: <0bc8156ace914dd7e1b8f8a5c7741d8b5af7b8fe.1736373023.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.48 X-Spam-Score: -3.48 X-Migadu-Queue-Id: 4A55A9CAF1 X-Migadu-Scanner: mx10.migadu.com X-TUID: qRY3CDQSwLHj * 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 0e8945be16..7bc1d0b9e5 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 f3331ae835..54a22d98dc 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) @@ -334,12 +335,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