GNU bug report logs -
#77303
[PATCH] services: anonip: Rotate log files.
Previous Next
To reply to this bug, email your comments to 77303 AT debbugs.gnu.org.
There is no need to reopen the bug first.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
ludo <at> gnu.org, maxim.cournoyer <at> gmail.com, guix-patches <at> gnu.org
:
bug#77303
; Package
guix-patches
.
(Thu, 27 Mar 2025 08:35:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
ludo <at> gnu.org, maxim.cournoyer <at> gmail.com, guix-patches <at> gnu.org
.
(Thu, 27 Mar 2025 08:35:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/services/web.scm (anonip-log-files): New procedure.
(anonip-service-type): Use it to extend ‘log-rotation-service-type’.
* doc/guix.texi (Log Rotation): Document it.
Change-Id: I903bb79e0992b794bb0a40e504283cd57a8a087b
---
doc/guix.texi | 4 +++-
gnu/services/web.scm | 6 ++++++
2 files changed, 9 insertions(+), 1 deletion(-)
This fixes a longstanding issue, in particular on berlin where log
files keep growing. :-)
Ludo'.
diff --git a/doc/guix.texi b/doc/guix.texi
index 3b98f1b4ea..28d7bf60ea 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -21453,7 +21453,9 @@ Log Rotation
FIFO of this name. The web server should write its logs to this FIFO.
@item @code{output}
-The file name of the processed log file.
+The file name of the processed log file. This file is subject to log
+rotation @i{via} the Shepherd's log rotation service (@pxref{Log
+Rotation}).
@end table
The following optional settings may be provided:
diff --git a/gnu/services/web.scm b/gnu/services/web.scm
index f8cf06fb48..9caa03317b 100644
--- a/gnu/services/web.scm
+++ b/gnu/services/web.scm
@@ -1574,12 +1574,18 @@ (define (anonip-shepherd-service config)
"LC_ALL=en_US.utf8"))))
(stop #~(make-kill-destructor))))))
+(define (anonip-log-files config)
+ "Return the list of log files produced by @command{anonip}."
+ (list (anonip-configuration-output config)))
+
(define anonip-service-type
(service-type
(name 'anonip)
(extensions
(list (service-extension shepherd-root-service-type
anonip-shepherd-service)
+ (service-extension log-rotation-service-type
+ anonip-log-files)
(service-extension activation-service-type
anonip-activation)))
(description
base-commit: cfdd0f58d0f85127c166f0908aa7b85c7cb9cc74
--
2.49.0
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Tue, 08 Apr 2025 15:32:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
bug acknowledged by developer.
(Tue, 08 Apr 2025 15:32:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 77303-done <at> debbugs.gnu.org (full text, mbox):
Ludovic Courtès <ludo <at> gnu.org> skribis:
> * gnu/services/web.scm (anonip-log-files): New procedure.
> (anonip-service-type): Use it to extend ‘log-rotation-service-type’.
> * doc/guix.texi (Log Rotation): Document it.
>
> Change-Id: I903bb79e0992b794bb0a40e504283cd57a8a087b
I went ahead with this change, which is hopefully a cheap improvement.
Ludo'.
This bug report was last modified today.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.