[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/07: services: tor: Do not write to /var/log/tor.log.
From: |
guix-commits |
Subject: |
01/07: services: tor: Do not write to /var/log/tor.log. |
Date: |
Sun, 31 Jul 2022 18:06:33 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit bfe3fdbc75a1412ccac46fc2ca750fa42e7f70fe
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Jul 31 18:22:45 2022 +0200
services: tor: Do not write to /var/log/tor.log.
The service uses syslog and additionally shepherd 0.9 captures its
stdout/stderr, so there's no point in passing #:log-file.
* gnu/services/networking.scm (tor-shepherd-service): Remove #:log-file
argument to 'make-forkexec-constructor'.
(%tor-log-rotation): Remove.
(tor-service-type): Remove ROTTLOG-SERVICE-TYPE extension.
---
gnu/services/networking.scm | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index b555c46040..3ddcdcc251 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -997,15 +997,10 @@ HiddenServicePort ~a ~a~%"
;; 'sd_notify' though), so we're stuck with that.
(start #~(make-forkexec-constructor
(list #$tor "-f" #$torrc)
- #:user "tor" #:group "tor"
- #:log-file "/var/log/tor.log"))
+ #:user "tor" #:group "tor"))
(stop #~(make-kill-destructor))
(documentation "Run the Tor anonymous network overlay."))))))))
-(define %tor-log-rotation
- (list (log-rotation
- (files '("/var/log/tor.log")))))
-
(define (tor-activation config)
"Set up directories for Tor and its hidden services, if any."
#~(begin
@@ -1051,9 +1046,7 @@ HiddenServicePort ~a ~a~%"
(service-extension account-service-type
(const %tor-accounts))
(service-extension activation-service-type
- tor-activation)
- (service-extension rottlog-service-type
- (const %tor-log-rotation))))
+ tor-activation)))
;; This can be extended with hidden services.
(compose concatenate)
- branch master updated (7c1010f326 -> ab59155c5a), guix-commits, 2022/07/31
- 01/07: services: tor: Do not write to /var/log/tor.log.,
guix-commits <=
- 03/07: gnu: rottlog: Remove input labels., guix-commits, 2022/07/31
- 04/07: home: Add 'home-generation-base'., guix-commits, 2022/07/31
- 02/07: services: rottlog: Keep important /var/log files for 16 weeks., guix-commits, 2022/07/31
- 05/07: guix gc: '--delete-generations' now deletes old Home generations., guix-commits, 2022/07/31
- 07/07: gnu: mtd-utils: Disable parallel tests., guix-commits, 2022/07/31
- 06/07: services: rottlog: More convenient default options for <log-rotation>., guix-commits, 2022/07/31