diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-07-31 18:32:13 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-08-01 00:02:04 +0200 |
commit | e5a6900baf758a12024283171bf45f2fe90121ee (patch) | |
tree | 9a2a8b12e9e956d6997bc67ae4fee93c72931e2f /gnu/services/admin.scm | |
parent | bfe3fdbc75a1412ccac46fc2ca750fa42e7f70fe (diff) | |
download | guix-e5a6900baf758a12024283171bf45f2fe90121ee.tar.gz |
services: rottlog: Keep important /var/log files for 16 weeks.
The default "rotate" value is 1 as of rottlog 0.72.2, meaning that only one rotated file would be kept in addition to the active file. * gnu/services/admin.scm (%default-rotations): Add "rotate" option for %ROTATED-FILES.
Diffstat (limited to 'gnu/services/admin.scm')
-rw-r--r-- | gnu/services/admin.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/services/admin.scm b/gnu/services/admin.scm index 0b4ecaeb83..6951c7a9fd 100644 --- a/gnu/services/admin.scm +++ b/gnu/services/admin.scm @@ -93,7 +93,10 @@ (list (log-rotation ;syslog files (files %rotated-files) - (options '(;; Run post-rotate once per rotation + (frequency 'weekly) + (options '(;; These files are worth keeping for a few weeks. + "rotate 16" + ;; Run post-rotate once per rotation "sharedscripts" ;; Append .gz to rotated files "storefile @FILENAME.@COMP_EXT")) |