From: "Ludovic Courtès" <ludo@gnu.org>
To: 74860@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>,
"Ludovic Courtès" <ludo@gnu.org>,
"Maxim Cournoyer" <maxim.cournoyer@gmail.com>
Subject: [bug#74860] [PATCH v3 07/12] services: rottlog: Deprecate.
Date: Wed, 8 Jan 2025 22:51:55 +0100 [thread overview]
Message-ID: <0bc8156ace914dd7e1b8f8a5c7741d8b5af7b8fe.1736373023.git.ludo@gnu.org> (raw)
In-Reply-To: <cover.1736373022.git.ludo@gnu.org>
* 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
next prev parent reply other threads:[~2025-01-08 21:54 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-13 22:55 [bug#74860] [PATCH 00/10] Using the Shepherd's log rotation service Ludovic Courtès
2024-12-13 22:58 ` [bug#74860] [PATCH 01/10] gnu: shepherd@1.0: Add dependency on gzip and zstd Ludovic Courtès
2024-12-13 22:58 ` [bug#74860] [PATCH 02/10] services: Add ‘log-rotation-service-type’ Ludovic Courtès
2025-01-02 14:19 ` Maxim Cournoyer
2025-01-04 18:16 ` Ludovic Courtès
2024-12-13 22:58 ` [bug#74860] [PATCH 03/10] services: log-cleanup: Rewrite as a Shepherd timer Ludovic Courtès
2025-01-02 14:24 ` Maxim Cournoyer
2024-12-13 22:58 ` [bug#74860] [PATCH 04/10] services: unattended-upgrade: " Ludovic Courtès
2025-01-02 14:28 ` Maxim Cournoyer
2024-12-13 22:58 ` [bug#74860] [PATCH 05/10] services: Switch from mcron + Rottlog to Shepherd’s log rotation Ludovic Courtès
2025-01-02 14:41 ` Maxim Cournoyer
2024-12-13 22:58 ` [bug#74860] [PATCH 06/10] services: rottlog: Deprecate Ludovic Courtès
2024-12-13 22:58 ` [bug#74860] [PATCH 07/10] DRAFT news: Add entry for ‘rottlog-service-type’ deprecation Ludovic Courtès
2024-12-14 18:34 ` pelzflorian (Florian Pelz)
2024-12-17 14:25 ` Ludovic Courtès
2024-12-13 22:58 ` [bug#74860] [PATCH 08/10] home: services: Add log rotation service Ludovic Courtès
2024-12-13 22:58 ` [bug#74860] [PATCH 09/10] home: Define ‘%base-home-services’ Ludovic Courtès
2025-01-02 14:34 ` Maxim Cournoyer
2024-12-13 22:58 ` [bug#74860] [PATCH 10/10] home: Add log rotation to ‘%base-home-services’ Ludovic Courtès
2025-01-02 14:34 ` Maxim Cournoyer
2024-12-13 23:20 ` [bug#74860] [PATCH 00/10] Using the Shepherd's log rotation service Ludovic Courtès
2025-01-08 17:41 ` [bug#74860] [PATCH v2 00/12] " Ludovic Courtès
2025-01-08 17:41 ` [bug#74860] [PATCH v2 01/12] gnu: shepherd@1.0: Add dependency on gzip and zstd Ludovic Courtès
2025-01-08 17:41 ` [bug#74860] [PATCH v2 02/12] system: Add zstd to ‘%base-packages’ Ludovic Courtès
2025-01-08 17:41 ` [bug#74860] [PATCH v2 03/12] services: Add ‘log-rotation-service-type’ Ludovic Courtès
2025-01-08 17:41 ` [bug#74860] [PATCH v2 04/12] services: log-cleanup: Rewrite as a Shepherd timer Ludovic Courtès
2025-01-08 17:41 ` [bug#74860] [PATCH v2 05/12] services: unattended-upgrade: " Ludovic Courtès
2025-01-08 17:41 ` [bug#74860] [PATCH v2 06/12] services: Switch from mcron + Rottlog to Shepherd’s log rotation Ludovic Courtès
2025-01-08 17:41 ` [bug#74860] [PATCH v2 07/12] services: rottlog: Deprecate Ludovic Courtès
2025-01-08 17:41 ` [bug#74860] [PATCH v2 08/12] DRAFT news: Add entry for ‘rottlog-service-type’ deprecation Ludovic Courtès
2025-01-08 17:41 ` [bug#74860] [PATCH v2 09/12] home: services: Add log rotation service Ludovic Courtès
2025-01-08 17:41 ` [bug#74860] [PATCH v2 10/12] home: Define ‘%base-home-services’ Ludovic Courtès
2025-01-08 17:41 ` [bug#74860] [PATCH v2 11/12] home: Add log rotation to ‘%base-home-services’ Ludovic Courtès
2025-01-08 17:41 ` [bug#74860] [PATCH v2 12/12] DRAFT news: Add entry for ‘%base-home-services’ Ludovic Courtès
2025-01-08 21:51 ` [bug#74860] [PATCH v3 00/12] Using the Shepherd's log rotation service Ludovic Courtès
2025-01-08 21:51 ` [bug#74860] [PATCH v3 01/12] gnu: shepherd@1.0: Add dependency on gzip and zstd Ludovic Courtès
2025-01-08 21:51 ` [bug#74860] [PATCH v3 02/12] system: Add zstd to ‘%base-packages’ Ludovic Courtès
2025-01-08 21:51 ` [bug#74860] [PATCH v3 03/12] services: Add ‘log-rotation-service-type’ Ludovic Courtès
2025-01-08 21:51 ` [bug#74860] [PATCH v3 04/12] services: log-cleanup: Rewrite as a Shepherd timer Ludovic Courtès
2025-01-08 21:51 ` [bug#74860] [PATCH v3 05/12] services: unattended-upgrade: " Ludovic Courtès
2025-01-08 21:51 ` [bug#74860] [PATCH v3 06/12] services: Switch from mcron + Rottlog to Shepherd’s log rotation Ludovic Courtès
2025-01-08 21:51 ` Ludovic Courtès [this message]
2025-01-08 21:51 ` [bug#74860] [PATCH v3 08/12] DRAFT news: Add entry for ‘rottlog-service-type’ deprecation Ludovic Courtès
2025-01-08 21:51 ` [bug#74860] [PATCH v3 09/12] home: services: Add log rotation service Ludovic Courtès
2025-01-08 21:51 ` [bug#74860] [PATCH v3 10/12] home: Define ‘%base-home-services’ Ludovic Courtès
2025-01-08 21:51 ` [bug#74860] [PATCH v3 11/12] home: Add log rotation to ‘%base-home-services’ Ludovic Courtès
2025-01-08 21:52 ` [bug#74860] [PATCH v3 12/12] DRAFT news: Add entry for ‘%base-home-services’ Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0bc8156ace914dd7e1b8f8a5c7741d8b5af7b8fe.1736373023.git.ludo@gnu.org \
--to=ludo@gnu.org \
--cc=74860@debbugs.gnu.org \
--cc=maxim.cournoyer@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.