summaryrefslogtreecommitdiff
path: root/net-misc/tor/files/tor.service
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2015-10-18 06:23:30 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2015-10-18 06:23:30 +0300
commitd36d3bb151f73f913df82862bcb0f0a83950b2e6 (patch)
tree1d75cbe22bda8b31b6ff2c377ec6d7cc19d428b0 /net-misc/tor/files/tor.service
parentd3f5e3dc02b645e59587d1bc6ffab627f7baf988 (diff)
tor git
Diffstat (limited to 'net-misc/tor/files/tor.service')
-rw-r--r--net-misc/tor/files/tor.service21
1 files changed, 21 insertions, 0 deletions
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