From ee055050f0f2dbfea8d7b11e1418dcb10541359c Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Tue, 14 Jan 2014 11:11:56 +0100 Subject: [PATCH] systemd: Add tor unit file --- systemd/tor.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 systemd/tor.service 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 -- 2.39.5