mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 21:59:08 -05:00
service: cuirass: Rotate remote server logs.
* gnu/services/cuirass.scm (cuirass-log-rotations): Add the remote server log when it is used.
This commit is contained in:
parent
ce1f5ff6cf
commit
ac682963a3
1 changed files with 7 additions and 2 deletions
|
@ -302,8 +302,13 @@ (define (cuirass-activation config)
|
|||
(define (cuirass-log-rotations config)
|
||||
"Return the list of log rotations that corresponds to CONFIG."
|
||||
(list (log-rotation
|
||||
(files (list (cuirass-configuration-log-file config)
|
||||
(cuirass-configuration-web-log-file config)))
|
||||
(files (append (list (cuirass-configuration-log-file config)
|
||||
(cuirass-configuration-web-log-file config))
|
||||
(let ((server
|
||||
(cuirass-configuration-remote-server config)))
|
||||
(if server
|
||||
(list (cuirass-remote-server-log-file server))
|
||||
'()))))
|
||||
(frequency 'weekly)
|
||||
(options `("rotate 40" ;worth keeping
|
||||
,@%default-log-rotation-options)))))
|
||||
|
|
Loading…
Reference in a new issue