services: rottlog: Keep fewer "guix-daemon.log" files.

* gnu/services/admin.scm (%default-rotations): For "guix-daemon.log",
add 'options' field.
This commit is contained in:
Ludovic Courtès 2022-04-09 00:30:40 +02:00
parent 090ebc5ff9
commit 0996d48d0e
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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