[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#74860] [PATCH 06/10] services: rottlog: Deprecate.
From: |
Ludovic Courtès |
Subject: |
[bug#74860] [PATCH 06/10] services: rottlog: Deprecate. |
Date: |
Fri, 13 Dec 2024 23:58:26 +0100 |
* 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 | 5 ++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 952248f2a0..1df1ccc649 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -20841,6 +20841,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-05-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 7f570f67e4..5d585959a0 100644
--- a/gnu/services/admin.scm
+++ b/gnu/services/admin.scm
@@ -32,6 +32,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)
@@ -298,7 +299,9 @@ (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-05-15.
+(define-deprecated rottlog-service-type
+ log-rotation-service-type
(service-type
(name 'rottlog)
(description
--
2.46.0
- [bug#74860] [PATCH 01/10] gnu: shepherd@1.0: Add dependency on gzip and zstd., (continued)
- [bug#74860] [PATCH 01/10] gnu: shepherd@1.0: Add dependency on gzip and zstd., Ludovic Courtès, 2024/12/13
- [bug#74860] [PATCH 05/10] services: Switch from mcron + Rottlog to Shepherd’s log rotation., Ludovic Courtès, 2024/12/13
- [bug#74860] [PATCH 02/10] services: Add ‘log-rotation-service-type’., Ludovic Courtès, 2024/12/13
- [bug#74860] [PATCH 03/10] services: log-cleanup: Rewrite as a Shepherd timer., Ludovic Courtès, 2024/12/13
- [bug#74860] [PATCH 08/10] home: services: Add log rotation service., Ludovic Courtès, 2024/12/13
- [bug#74860] [PATCH 09/10] home: Define ‘%base-home-services’., Ludovic Courtès, 2024/12/13
- [bug#74860] [PATCH 07/10] DRAFT news: Add entry for ‘rottlog-service-type’ deprecation., Ludovic Courtès, 2024/12/13
- [bug#74860] [PATCH 10/10] home: Add log rotation to ‘%base-home-services’., Ludovic Courtès, 2024/12/13
- [bug#74860] [PATCH 06/10] services: rottlog: Deprecate.,
Ludovic Courtès <=
- [bug#74860] [PATCH 00/10] Using the Shepherd's log rotation service, Ludovic Courtès, 2024/12/13