summarylogtreecommitdiffstats
path: root/tor.service
diff options
context:
space:
mode:
Diffstat (limited to 'tor.service')
-rw-r--r--tor.service11
1 files changed, 8 insertions, 3 deletions
diff --git a/tor.service b/tor.service
index 69d53ee3c37f..b3abe4ed7604 100644
--- a/tor.service
+++ b/tor.service
@@ -3,10 +3,15 @@ Description=Anonymizing overlay network for TCP
After=syslog.target network.target nss-lookup.target
[Service]
-Type=forking
+Type=notify
+NotifyAccess=all
+ExecStartPre=/usr/bin/tor -f /etc/tor/torrc --verify-config
ExecStart=/usr/bin/tor -f /etc/tor/torrc
-ExecReload=/bin/kill -HUP $MAINPID
+ExecReload=/bin/kill -HUP ${MAINPID}
KillSignal=SIGINT
+TimeoutSec=60
+Restart=on-failure
+WatchdogSec=1m
LimitNOFILE=32768
# Hardening
@@ -21,4 +26,4 @@ NoNewPrivileges=yes
CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_NET_BIND_SERVICE CAP_DAC_READ_SEARCH
[Install]
-WantedBy=multi-user.target
+WantedBy=multi-user.target \ No newline at end of file