summary refs log tree commit diff
path: root/gnu/services/admin.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-04-09 00:30:40 +0200
committerLudovic Courtès <ludo@gnu.org>2022-04-09 00:30:40 +0200
commit0996d48d0e79a360e0d5583b812cd565f62ca32e (patch)
tree676c51b6325620e47add3319e185d696d179b22b /gnu/services/admin.scm
parent090ebc5ff9772fc372b6c9e3485b895f371f9e29 (diff)
downloadguix-0996d48d0e79a360e0d5583b812cd565f62ca32e.tar.gz
services: rottlog: Keep fewer "guix-daemon.log" files.
* gnu/services/admin.scm (%default-rotations): For "guix-daemon.log",
add 'options' field.
Diffstat (limited to 'gnu/services/admin.scm')
-rw-r--r--gnu/services/admin.scm4
1 files changed, 3 insertions, 1 deletions
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