From d36d3bb151f73f913df82862bcb0f0a83950b2e6 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 18 Oct 2015 06:23:30 +0300 Subject: tor git --- net-misc/tor/files/tor.service | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 net-misc/tor/files/tor.service (limited to 'net-misc/tor/files/tor.service') diff --git a/net-misc/tor/files/tor.service b/net-misc/tor/files/tor.service new file mode 100644 index 0000000..8fcc674 --- /dev/null +++ b/net-misc/tor/files/tor.service @@ -0,0 +1,21 @@ +[Unit] +Description=The Onion Router + +[Service] +ExecStartPre=/usr/bin/tor --verify-config -f /etc/tor/torrc +ExecStart=/usr/bin/tor --RunAsDaemon 0 -f /etc/tor/torrc +ExecReload=/bin/kill -HUP $MAINPID +KillSignal=SIGINT +TimeoutStopSec=32 +LimitNOFILE=30000 + +# Hardening options: +CapabilityBoundingSet = CAP_SETUID CAP_SETGID CAP_NET_BIND_SERVICE +PrivateTmp = yes +PrivateDevices = yes +ProtectHome = yes +ProtectSystem = full +NoNewPrivileges = yes + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3