Permalink
Cannot retrieve contributors at this time
29 lines (26 sloc)
806 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| [Unit] | |
| Description = Anonymizing overlay network for TCP | |
| After = syslog.target network.target nss-lookup.target | |
| [Service] | |
| Type = simple | |
| ExecStartPre = @BINDIR@/tor -f @CONFDIR@/torrc --verify-config | |
| # A torrc that has "RunAsDaemon 1" won't work with the "simple" service type; | |
| # let's explicitly override it. | |
| ExecStart = @BINDIR@/tor -f @CONFDIR@/torrc --RunAsDaemon 0 | |
| ExecReload = /bin/kill -HUP ${MAINPID} | |
| KillSignal = SIGINT | |
| TimeoutSec = 30 | |
| Restart = on-failure | |
| LimitNOFILE = 32768 | |
| # Hardening | |
| PrivateTmp = yes | |
| PrivateDevices = yes | |
| ProtectHome = yes | |
| ProtectSystem = full | |
| ReadOnlyDirectories = / | |
| ReadWriteDirectories = -@LOCALSTATEDIR@/lib/tor | |
| ReadWriteDirectories = -@LOCALSTATEDIR@/log/tor | |
| ReadWriteDirectories = -@LOCALSTATEDIR@/run/tor | |
| NoNewPrivileges = yes | |
| [Install] | |
| WantedBy = multi-user.target |