Permalink
Cannot retrieve contributors at this time
19 lines (18 sloc)
786 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
| # Config that uses a privcount-patched tor for your systemd tor instances. | |
| # | |
| # Install a privcount-patched tor in: | |
| # /usr/local | |
| # Copy this file to: | |
| # /etc/systemd/system/tor@.service.d/ | |
| # Run: | |
| # systemctl daemon-reload | |
| # systemctl restart tor@* | |
| # systemctl status tor@* | |
| [Service] | |
| # Clear the configs, otherwise they would become lists (and fail) | |
| ExecStartPre= | |
| ExecStart= | |
| # Use the privcount-patched tor instance in /usr/local/bin | |
| ExecStartPre=/usr/bin/install -Z -m 02750 -o _tor-%i -g _tor-%i -d /var/run/%i | |
| ExecStartPre=/usr/local/bin/tor --defaults-torrc /etc/tor/tor-service-defaults-torrc-instances -f /etc/tor/instances/%i/torrc --verify-config | |
| ExecStart=/usr/local/bin/tor --defaults-torrc /etc/tor/tor-service-defaults-torrc-instances -f /etc/tor/instances/%i/torrc |