From 9ccc94afb266428b7feeba805617d31eb8afb23c Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 7 Dec 2022 23:05:00 +0100 Subject: services: guix-publish: Keep fewer rotated logs. * gnu/services/base.scm (%guix-publish-log-rotations): Add 'options' field. --- gnu/services/base.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnu/services') diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 370696a55e..ba59e46155 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -2016,7 +2016,9 @@ raise a deprecation warning if the 'compression-level' field was used." (define %guix-publish-log-rotations (list (log-rotation - (files (list "/var/log/guix-publish.log"))))) + (files (list "/var/log/guix-publish.log")) + (options `("rotate 4" ;don't keep too many of them + ,@%default-log-rotation-options))))) (define (guix-publish-activation config) (let ((cache (guix-publish-configuration-cache config))) -- cgit v1.2.3