guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/07: services: rottlog: Keep important /var/log files for 16 weeks.


From: guix-commits
Subject: 02/07: services: rottlog: Keep important /var/log files for 16 weeks.
Date: Sun, 31 Jul 2022 18:06:33 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit e5a6900baf758a12024283171bf45f2fe90121ee
Author: Ludovic Court├Ęs <ludo@gnu.org>
AuthorDate: Sun Jul 31 18:32:13 2022 +0200

    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.
---
 gnu/services/admin.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]