services: tor: Write to syslog.
* gnu/services/networking.scm (tor-configuration->torrc): Add "Log notice syslog". (tor-dmd-service): Add 'syslogd' to 'requirement'.
This commit is contained in:
parent
6331bde73f
commit
5ee35eb747
|
@ -350,7 +350,8 @@ keep the system clock synchronized with that of @var{servers}."
|
||||||
(lambda (port)
|
(lambda (port)
|
||||||
(display "\
|
(display "\
|
||||||
# The beginning was automatically added.
|
# The beginning was automatically added.
|
||||||
User tor\n" port)
|
User tor
|
||||||
|
Log notice syslog\n" port)
|
||||||
|
|
||||||
(for-each (match-lambda
|
(for-each (match-lambda
|
||||||
((service (ports hosts) ...)
|
((service (ports hosts) ...)
|
||||||
|
@ -384,7 +385,7 @@ HiddenServicePort ~a ~a~%"
|
||||||
|
|
||||||
;; Tor needs at least one network interface to be up, hence the
|
;; Tor needs at least one network interface to be up, hence the
|
||||||
;; dependency on 'loopback'.
|
;; dependency on 'loopback'.
|
||||||
(requirement '(user-processes loopback))
|
(requirement '(user-processes loopback syslogd))
|
||||||
|
|
||||||
(start #~(make-forkexec-constructor
|
(start #~(make-forkexec-constructor
|
||||||
(list (string-append #$tor "/bin/tor") "-f" #$torrc)))
|
(list (string-append #$tor "/bin/tor") "-f" #$torrc)))
|
||||||
|
|
Loading…
Reference in New Issue