diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-03-31 23:17:48 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-04-04 22:58:03 +0200 |
commit | e692dc632cbb0e6d21ed6f09f4c7f52391802cfb (patch) | |
tree | 6ff42e58b0792971f13b9a1d3aa40af986b4c579 /gnu/services | |
parent | 3b9b3b49316596bc1fab2834ef156091b553b4b7 (diff) | |
download | guix-e692dc632cbb0e6d21ed6f09f4c7f52391802cfb.tar.gz guix-e692dc632cbb0e6d21ed6f09f4c7f52391802cfb.zip |
services: Add 'log-cleanup' service to '%base-services' for build logs.
* gnu/services/base.scm (%base-services): Add 'log-cleanup-service-type'
instance.
* doc/guix.texi (Log Rotation): Add example and mention '%base-services'.
Diffstat (limited to 'gnu/services')
-rw-r--r-- | gnu/services/base.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm index f278cb76de..5d7c69a9cd 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -2817,6 +2817,11 @@ to handle." (service rottlog-service-type) + ;; Periodically delete old build logs. + (service log-cleanup-service-type + (log-cleanup-configuration + (directory "/var/log/guix/drvs"))) + ;; The LVM2 rules are needed as soon as LVM2 or the device-mapper is ;; used, so enable them by default. The FUSE and ALSA rules are ;; less critical, but handy. |