]> git.sthu.org Git - shutils.git/commitdiff
systemd: Add tor unit file
authorStefan Huber <shuber@sthu.org>
Tue, 14 Jan 2014 10:11:56 +0000 (11:11 +0100)
committerStefan Huber <shuber@sthu.org>
Tue, 14 Jan 2014 10:11:56 +0000 (11:11 +0100)
systemd/tor.service [new file with mode: 0644]

diff --git a/systemd/tor.service b/systemd/tor.service
new file mode 100644 (file)
index 0000000..3b3d3f2
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description = Anonymizing overlay network for TCP
+After = syslog.target network.target nss-lookup.target
+
+[Service]
+Type = simple
+ExecStart = /usr/bin/tor --runasdaemon 0 --defaults-torrc /usr/share/tor/defaults-torrc -f /etc/tor/torrc --quiet
+ExecReload = /bin/kill -HUP ${MAINPID}
+ExecStop = /bin/kill -INT ${MAINPID}
+TimeoutSec = 30
+Restart = on-failure
+LimitNOFILE = 4096
+
+[Install]
+WantedBy = multi-user.target