summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/tor/files')
-rw-r--r--net-misc/tor/files/tor.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/net-misc/tor/files/tor.service b/net-misc/tor/files/tor.service
new file mode 100644
index 000000000000..9d84caa6f690
--- /dev/null
+++ b/net-misc/tor/files/tor.service
@@ -0,0 +1,14 @@
+[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
+ExecStop=/bin/kill -INT $MAINPID
+ExecReload=/bin/kill -HUP $MAINPID
+TimeoutStopSec=32
+LimitNOFILE=30000
+Group=tor
+
+[Install]
+WantedBy=multi-user.target