mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
services: rottlog: Append '.gz' to rotated file.
Fixes <https://issues.guix.info/issue/40945>. * gnu/services/admin.scm (%default-rotations): Add option 'storefile'.
This commit is contained in:
parent
0b5bf61573
commit
ab034adfe8
1 changed files with 5 additions and 1 deletions
|
@ -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 @@ (define %default-rotations
|
|||
(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))))
|
||||
|
|
Loading…
Reference in a new issue