diff options
author | Brice Waegeneire <brice@waegenei.re> | 2020-04-29 09:34:01 +0200 |
---|---|---|
committer | Brice Waegeneire <brice@waegenei.re> | 2020-05-06 11:03:39 +0200 |
commit | ab034adfe86333fccd6afe476806f169e2074d69 (patch) | |
tree | ed05dd1e3cca48d19b6047ba7a7e5082a404f1c2 /gnu/services | |
parent | 0b5bf61573c5491a52dfb70ea2b6e91ca61ef199 (diff) | |
download | guix-ab034adfe86333fccd6afe476806f169e2074d69.tar.gz guix-ab034adfe86333fccd6afe476806f169e2074d69.zip |
services: rottlog: Append '.gz' to rotated file.
Fixes <https://issues.guix.info/issue/40945>.
* gnu/services/admin.scm (%default-rotations): Add option 'storefile'.
Diffstat (limited to 'gnu/services')
-rw-r--r-- | gnu/services/admin.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/services/admin.scm b/gnu/services/admin.scm index df3cb01646..89fa73920d 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 <janneke@gnu.org> ;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re> ;;; ;;; 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)))) |