services: tor: Add a system test.
authorChris Marusich <cmmarusich@gmail.com>
Sun, 22 Jul 2018 23:23:53 +0000 (16:23 -0700)
committerChris Marusich <cmmarusich@gmail.com>
Tue, 28 Aug 2018 07:14:24 +0000 (00:14 -0700)
commit5dfd80e1c5c9803a281804801592d191cf9148ae
treeb7a1dcec0f39d5aa9782d03611d019e6171d2501
parent526ce419303ac511be8d51b41471022bed472e6b
services: tor: Add a system test.

* gnu/services/networking.scm (tor-configuration->torrc): Set PidFile to
/var/run/tor/tor.pid in the base torrc configuration.
(tor-shepherd-service) <start>: Call make-forkexec-constructor/container with
a new #:pid-file argument to tell Shepherd where to find the PID file.  Add a
a new <file-system-mapping> to its existing #:mappings argument to share
/var/run/tor with the the container.
(tor-hidden-services-activation): Update docstring.  Create /var/run/tor and
set its permissions so only the tor user can access it.
* gnu/tests/networking.scm (%test-tor, %tor-os): New variables.
(run-tor-test): New procedure.
gnu/services/networking.scm
gnu/tests/networking.scm