diff options
author | ykonai <mail@ykonai.net> | 2022-05-23 21:39:08 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-05-24 17:19:03 +0200 |
commit | 29c931780897b78c8d1499b648692a84a7b5063d (patch) | |
tree | 4e9cb980b09e54b6f7594a36e632bfad14ed2024 /gnu/services/dict.scm | |
parent | 3e59d41df031a86e48f6b8ee1ac7a72d3c183f69 (diff) | |
download | guix-29c931780897b78c8d1499b648692a84a7b5063d.tar guix-29c931780897b78c8d1499b648692a84a7b5063d.tar.gz |
services: Add log rotation to most networking services.
This adds a simple log rotation extension to every networking service that
specifies a #:log-file in its Shepherd service, which should prevent some logs
from accumulating indefinitely.
* gnu/services/networking.scm (%ntp-log-rotation): New variable.
(ntp-service-type): Extend 'rottlog-service-type'.
(openntpd-shepherd-service): Change #:log-file argument to "/var/log/ntpd.log".
(openntpd-service-type): Extend 'rottlog-service-type'.
(%tor-log-rotation): New variable.
(tor-service-type): Extend 'rottlog-service-type'.
(%connman-log-rotation): New variable.
(connman-service-type): Extend 'rottlog-service-type'.
(%hostapd-log-rotation): New variable.
(hostapd-service-type): Extend 'rottlog-service-type'.
(%pagekite-log-rotation): New variable.
(pagekite-service-type): Extend 'rottlog-service-type'.
(%yggdrasil-log-rotation): New variable.
(yggdrasil-service-type): Extend 'rottlog-service-type'.
(%ipfs-log-rotation): New variable.
(ipfs-service-type): Extend 'rottlog-service-type'.
(%keepalived-log-rotation): New variable.
(keepalived-service-type): Extend 'rottlog-service-type'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/services/dict.scm')
0 files changed, 0 insertions, 0 deletions