From 0996d48d0e79a360e0d5583b812cd565f62ca32e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 9 Apr 2022 00:30:40 +0200 Subject: [PATCH] services: rottlog: Keep fewer "guix-daemon.log" files. * gnu/services/admin.scm (%default-rotations): For "guix-daemon.log", add 'options' field. --- gnu/services/admin.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/services/admin.scm b/gnu/services/admin.scm index 3096acdf5a..0b4ecaeb83 100644 --- a/gnu/services/admin.scm +++ b/gnu/services/admin.scm @@ -102,7 +102,9 @@ (define %default-rotations read))) (kill pid SIGHUP)))) (log-rotation - (files '("/var/log/guix-daemon.log"))))) + (files '("/var/log/guix-daemon.log")) + (options '("rotate 4" ;don't keep too many of them + "storefile @FILENAME.@COMP_EXT"))))) (define (log-rotation->config rotation) "Return a string-valued gexp representing the rottlog configuration snippet