2014-04-21 15:47:44 +02:00
|
|
|
[Unit]
|
|
|
|
Description = Anonymizing overlay network for TCP
|
|
|
|
After = syslog.target network.target nss-lookup.target
|
|
|
|
|
|
|
|
[Service]
|
2015-01-09 22:17:50 +01:00
|
|
|
Type = notify
|
|
|
|
NotifyAccess = all
|
2014-07-29 14:13:01 +02:00
|
|
|
ExecStartPre = @BINDIR@/tor -f @CONFDIR@/torrc --verify-config
|
2015-01-11 17:26:08 +01:00
|
|
|
ExecStart = @BINDIR@/tor -f @CONFDIR@/torrc
|
2014-04-21 15:47:44 +02:00
|
|
|
ExecReload = /bin/kill -HUP ${MAINPID}
|
|
|
|
KillSignal = SIGINT
|
|
|
|
TimeoutSec = 30
|
|
|
|
Restart = on-failure
|
2015-01-09 23:42:16 +01:00
|
|
|
WatchdogSec = 1m
|
2014-04-21 15:47:44 +02:00
|
|
|
LimitNOFILE = 32768
|
|
|
|
|
|
|
|
# Hardening
|
|
|
|
PrivateTmp = yes
|
2014-11-28 18:36:17 +01:00
|
|
|
PrivateDevices = yes
|
2014-11-28 18:36:56 +01:00
|
|
|
ProtectHome = yes
|
2014-11-28 18:41:23 +01:00
|
|
|
ProtectSystem = full
|
2014-08-27 05:05:12 +02:00
|
|
|
ReadOnlyDirectories = /
|
2014-11-28 18:38:40 +01:00
|
|
|
ReadWriteDirectories = -@LOCALSTATEDIR@/lib/tor
|
|
|
|
ReadWriteDirectories = -@LOCALSTATEDIR@/log/tor
|
2014-08-27 05:18:26 +02:00
|
|
|
NoNewPrivileges = yes
|
2015-01-11 17:26:08 +01:00
|
|
|
CapabilityBoundingSet = CAP_SETUID CAP_SETGID CAP_NET_BIND_SERVICE
|
2014-04-21 15:47:44 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy = multi-user.target
|