2014-04-21 14:47:44 +01: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 12:13:01 +00:00
|
|
|
ExecStartPre = @BINDIR@/tor -f @CONFDIR@/torrc --verify-config
|
2015-01-11 11:26:08 -05:00
|
|
|
ExecStart = @BINDIR@/tor -f @CONFDIR@/torrc
|
2014-04-21 14:47:44 +01: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 14:47:44 +01:00
|
|
|
LimitNOFILE = 32768
|
|
|
|
|
|
|
|
# Hardening
|
|
|
|
PrivateTmp = yes
|
2014-11-28 12:36:17 -05:00
|
|
|
PrivateDevices = yes
|
2014-11-28 12:36:56 -05:00
|
|
|
ProtectHome = yes
|
2014-11-28 12:41:23 -05:00
|
|
|
ProtectSystem = full
|
2014-08-27 03:05:12 +00:00
|
|
|
ReadOnlyDirectories = /
|
2014-11-28 12:38:40 -05:00
|
|
|
ReadWriteDirectories = -@LOCALSTATEDIR@/lib/tor
|
|
|
|
ReadWriteDirectories = -@LOCALSTATEDIR@/log/tor
|
2014-08-27 03:18:26 +00:00
|
|
|
NoNewPrivileges = yes
|
2015-01-11 11:26:08 -05:00
|
|
|
CapabilityBoundingSet = CAP_SETUID CAP_SETGID CAP_NET_BIND_SERVICE
|
2014-04-21 14:47:44 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy = multi-user.target
|