mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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
This commit is contained in:
parent
e557df4a67
commit
8c3e925ace
2 changed files with 9 additions and 1 deletions
|
@ -21453,7 +21453,9 @@ The file name of the input log file to process. The service creates a
|
||||||
FIFO of this name. The web server should write its logs to this FIFO.
|
FIFO of this name. The web server should write its logs to this FIFO.
|
||||||
|
|
||||||
@item @code{output}
|
@item @code{output}
|
||||||
The file name of the processed log file.
|
The file name of the processed log file. This file is subject to log
|
||||||
|
rotation @i{via} the Shepherd's log rotation service (@pxref{Log
|
||||||
|
Rotation}).
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
The following optional settings may be provided:
|
The following optional settings may be provided:
|
||||||
|
|
|
@ -1574,12 +1574,18 @@ files.")
|
||||||
"LC_ALL=en_US.utf8"))))
|
"LC_ALL=en_US.utf8"))))
|
||||||
(stop #~(make-kill-destructor))))))
|
(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
|
(define anonip-service-type
|
||||||
(service-type
|
(service-type
|
||||||
(name 'anonip)
|
(name 'anonip)
|
||||||
(extensions
|
(extensions
|
||||||
(list (service-extension shepherd-root-service-type
|
(list (service-extension shepherd-root-service-type
|
||||||
anonip-shepherd-service)
|
anonip-shepherd-service)
|
||||||
|
(service-extension log-rotation-service-type
|
||||||
|
anonip-log-files)
|
||||||
(service-extension activation-service-type
|
(service-extension activation-service-type
|
||||||
anonip-activation)))
|
anonip-activation)))
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue