summaryrefslogtreecommitdiff
path: root/contrib/dist
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-07-20 11:00:23 -0400
committerNick Mathewson <nickm@torproject.org>2015-07-20 11:01:34 -0400
commit6632a731fd76ac5cc09571a9e4bcc10d1a809a01 (patch)
tree60e3389a55d13fa923e441ee81af29f808214ff0 /contrib/dist
parent9d1801b4b96d205d1896db754efbd54ecdf590d2 (diff)
downloadtor-6632a731fd76ac5cc09571a9e4bcc10d1a809a01.tar.gz
tor-6632a731fd76ac5cc09571a9e4bcc10d1a809a01.zip
Use a more recommended syntax for the systemd unit file
closes 16162.
Diffstat (limited to 'contrib/dist')
-rw-r--r--contrib/dist/tor.service.in44
1 files changed, 22 insertions, 22 deletions
diff --git a/contrib/dist/tor.service.in b/contrib/dist/tor.service.in
index c251158d9a..58a74b7fe7 100644
--- a/contrib/dist/tor.service.in
+++ b/contrib/dist/tor.service.in
@@ -1,29 +1,29 @@
[Unit]
-Description = Anonymizing overlay network for TCP
-After = syslog.target network.target nss-lookup.target
+Description=Anonymizing overlay network for TCP
+After=syslog.target network.target nss-lookup.target
[Service]
-Type = notify
-NotifyAccess = all
-ExecStartPre = @BINDIR@/tor -f @CONFDIR@/torrc --verify-config
-ExecStart = @BINDIR@/tor -f @CONFDIR@/torrc
-ExecReload = /bin/kill -HUP ${MAINPID}
-KillSignal = SIGINT
-TimeoutSec = 30
-Restart = on-failure
-WatchdogSec = 1m
-LimitNOFILE = 32768
+Type=notify
+NotifyAccess=all
+ExecStartPre=@BINDIR@/tor -f @CONFDIR@/torrc --verify-config
+ExecStart=@BINDIR@/tor -f @CONFDIR@/torrc
+ExecReload=/bin/kill -HUP ${MAINPID}
+KillSignal=SIGINT
+TimeoutSec=30
+Restart=on-failure
+WatchdogSec=1m
+LimitNOFILE=32768
# Hardening
-PrivateTmp = yes
-PrivateDevices = yes
-ProtectHome = yes
-ProtectSystem = full
-ReadOnlyDirectories = /
-ReadWriteDirectories = -@LOCALSTATEDIR@/lib/tor
-ReadWriteDirectories = -@LOCALSTATEDIR@/log/tor
-NoNewPrivileges = yes
-CapabilityBoundingSet = CAP_SETUID CAP_SETGID CAP_NET_BIND_SERVICE
+PrivateTmp=yes
+PrivateDevices=yes
+ProtectHome=yes
+ProtectSystem=full
+ReadOnlyDirectories=/
+ReadWriteDirectories=-@LOCALSTATEDIR@/lib/tor
+ReadWriteDirectories=-@LOCALSTATEDIR@/log/tor
+NoNewPrivileges=yes
+CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_NET_BIND_SERVICE
[Install]
-WantedBy = multi-user.target
+WantedBy=multi-user.target