[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: services: rottlog: Keep fewer "guix-daemon.log" files.
From: |
guix-commits |
Subject: |
02/02: services: rottlog: Keep fewer "guix-daemon.log" files. |
Date: |
Fri, 8 Apr 2022 18:31:31 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 0996d48d0e79a360e0d5583b812cd565f62ca32e
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat Apr 9 00:30:40 2022 +0200
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 @@
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