mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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:
parent
090ebc5ff9
commit
0996d48d0e
1 changed files with 3 additions and 1 deletions
|
@ -102,7 +102,9 @@ (define %default-rotations
|
||||||
read)))
|
read)))
|
||||||
(kill pid SIGHUP))))
|
(kill pid SIGHUP))))
|
||||||
(log-rotation
|
(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)
|
(define (log-rotation->config rotation)
|
||||||
"Return a string-valued gexp representing the rottlog configuration snippet
|
"Return a string-valued gexp representing the rottlog configuration snippet
|
||||||
|
|
Loading…
Reference in a new issue