tor.service.in 455 B

123456789101112131415161718192021
  1. [Unit]
  2. Description = Anonymizing overlay network for TCP
  3. After = syslog.target network.target nss-lookup.target
  4. [Service]
  5. Type = simple
  6. ExecStart = @BINDIR@/tor -f @CONFDIR@/torrc
  7. ExecReload = /bin/kill -HUP ${MAINPID}
  8. KillSignal = SIGINT
  9. TimeoutSec = 30
  10. Restart = on-failure
  11. LimitNOFILE = 32768
  12. # Hardening
  13. PrivateTmp = yes
  14. DeviceAllow = /dev/null rw
  15. DeviceAllow = /dev/urandom r
  16. InaccessibleDirectories = /home
  17. [Install]
  18. WantedBy = multi-user.target