services: guix-publish: Keep fewer rotated logs.

* gnu/services/base.scm (%guix-publish-log-rotations): Add 'options'
field.
This commit is contained in:
Ludovic Courtès 2022-12-07 23:05:00 +01:00
parent ac682963a3
commit 9ccc94afb2
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -2016,7 +2016,9 @@ (define %guix-publish-accounts
(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)))