projects
/
shutils.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c35db1
)
systemd: Add tor unit file
author
Stefan Huber <shuber@sthu.org>
Tue, 14 Jan 2014 10:11:56 +0000
(11:11 +0100)
committer
Stefan Huber <shuber@sthu.org>
Tue, 14 Jan 2014 10:11:56 +0000
(11:11 +0100)
systemd/tor.service
[new file with mode: 0644]
patch
|
blob
diff --git a/systemd/tor.service
b/systemd/tor.service
new file mode 100644
(file)
index 0000000..
3b3d3f2
--- /dev/null
+++ b/
systemd/tor.service
@@ -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