diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2025-03-27 09:32:37 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-04-08 17:12:29 +0200 |
| commit | 8c3e925ace35bcb3f74cf855e7e87d1e9a629910 (patch) | |
| tree | 8ca422181ce858bc5467571284d51d8929f6d322 /gnu | |
| parent | e557df4a678ee3dcf9349618fe10274e5d8bd866 (diff) | |
services: anonip: Rotate log files.
* gnu/services/web.scm (anonip-log-files): New procedure.
(anonip-service-type): Use it to extend ‘log-rotation-service-type’.
* doc/guix.texi (Log Rotation): Document it.
Change-Id: I903bb79e0992b794bb0a40e504283cd57a8a087b
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/services/web.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/services/web.scm b/gnu/services/web.scm index f8cf06fb486..9caa03317bf 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm @@ -1574,12 +1574,18 @@ files.") "LC_ALL=en_US.utf8")))) (stop #~(make-kill-destructor)))))) +(define (anonip-log-files config) + "Return the list of log files produced by @command{anonip}." + (list (anonip-configuration-output config))) + (define anonip-service-type (service-type (name 'anonip) (extensions (list (service-extension shepherd-root-service-type anonip-shepherd-service) + (service-extension log-rotation-service-type + anonip-log-files) (service-extension activation-service-type anonip-activation))) (description |
