aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/networking.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-11-27 23:08:00 +0100
committerLudovic Courtès <ludo@gnu.org>2015-11-27 23:08:00 +0100
commit5ee35eb747206a1d70bdeb979be88da47caa9f6f (patch)
tree3135ea08cc10b82180ecdc133e9bc736d0053c0a /gnu/services/networking.scm
parent6331bde73f26381e694f84e7e6885f1961abb8ae (diff)
downloadpatches-5ee35eb747206a1d70bdeb979be88da47caa9f6f.tar
patches-5ee35eb747206a1d70bdeb979be88da47caa9f6f.tar.gz
services: tor: Write to syslog.
* gnu/services/networking.scm (tor-configuration->torrc): Add "Log notice syslog". (tor-dmd-service): Add 'syslogd' to 'requirement'.
Diffstat (limited to 'gnu/services/networking.scm')
-rw-r--r--gnu/services/networking.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index e5b713678d..0c545124c7 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -350,7 +350,8 @@ keep the system clock synchronized with that of @var{servers}."
(lambda (port)
(display "\
# The beginning was automatically added.
-User tor\n" port)
+User tor
+Log notice syslog\n" port)
(for-each (match-lambda
((service (ports hosts) ...)
@@ -384,7 +385,7 @@ HiddenServicePort ~a ~a~%"
;; Tor needs at least one network interface to be up, hence the
;; dependency on 'loopback'.
- (requirement '(user-processes loopback))
+ (requirement '(user-processes loopback syslogd))
(start #~(make-forkexec-constructor
(list (string-append #$tor "/bin/tor") "-f" #$torrc)))