guix-commits
[Top][All Lists]
Advanced

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

01/03: services: rottlog: Append '.gz' to rotated file.


From: guix-commits
Subject: 01/03: services: rottlog: Append '.gz' to rotated file.
Date: Wed, 6 May 2020 05:10:21 -0400 (EDT)

bricewge pushed a commit to branch master
in repository guix.

commit ab034adfe86333fccd6afe476806f169e2074d69
Author: Brice Waegeneire <address@hidden>
AuthorDate: Wed Apr 29 09:34:01 2020 +0200

    services: rottlog: Append '.gz' to rotated file.
    
    Fixes <https://issues.guix.info/issue/40945>.
    
    * gnu/services/admin.scm (%default-rotations): Add option 'storefile'.
---
 gnu/services/admin.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/services/admin.scm b/gnu/services/admin.scm
index df3cb01..89fa739 100644
--- a/gnu/services/admin.scm
+++ b/gnu/services/admin.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2016 Jan Nieuwenhuizen <address@hidden>
 ;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <address@hidden>
+;;; Copyright © 2020 Brice Waegeneire <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -71,8 +72,11 @@
   (list (log-rotation                             ;syslog files
          (files %rotated-files)
 
+         (options '(;; Run post-rotate once per rotation
+                    "sharedscripts"
+                    ;; Append .gz to rotated files
+                    "storefile @FILENAME.@COMP_EXT"))
          ;; Restart syslogd after rotation.
-         (options '("sharedscripts"))
          (post-rotate #~(let ((pid (call-with-input-file "/var/run/syslog.pid"
                                      read)))
                           (kill pid SIGHUP))))



reply via email to

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