diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-04-09 00:30:40 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-04-09 00:30:40 +0200 |
commit | 0996d48d0e79a360e0d5583b812cd565f62ca32e (patch) | |
tree | 676c51b6325620e47add3319e185d696d179b22b /gnu | |
parent | 090ebc5ff9772fc372b6c9e3485b895f371f9e29 (diff) | |
download | guix-0996d48d0e79a360e0d5583b812cd565f62ca32e.tar guix-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')
-rw-r--r-- | gnu/services/admin.scm | 4 |
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 |