mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2025-03-10 08:54:36 +00:00
services: clash: Rotate logs.
* rosenthal/services/child-error.scm (clash-log-rotations): New procedure. (clash-service-type): Extend rottlog-service-type with it.
This commit is contained in:
parent
de09e5adc6
commit
df1b070693
@ -91,6 +91,10 @@
|
||||
(delete-file config-dest))
|
||||
(symlink #$config config-dest)))))
|
||||
|
||||
(define (clash-log-rotations config)
|
||||
(list (log-rotation
|
||||
(files (list (clash-configuration-log-file config))))))
|
||||
|
||||
(define clash-shepherd-service
|
||||
(match-record-lambda <clash-configuration>
|
||||
(clash log-file data-directory config shepherd-provision)
|
||||
@ -121,7 +125,9 @@
|
||||
(service-extension activation-service-type
|
||||
clash-activation)
|
||||
(service-extension account-service-type
|
||||
(const %clash-accounts))))
|
||||
(const %clash-accounts))
|
||||
(service-extension rottlog-service-type
|
||||
clash-log-rotations)))
|
||||
(default-value (clash-configuration))
|
||||
(description "Run Clash.")))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user