From: Stefan Huber Date: Tue, 14 Jan 2014 10:11:56 +0000 (+0100) Subject: systemd: Add tor unit file X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=ee055050f0f2dbfea8d7b11e1418dcb10541359c;p=shutils.git systemd: Add tor unit file --- diff --git a/systemd/tor.service b/systemd/tor.service new file mode 100644 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