mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
8b470ee4b5
Our current systemd unit uses "Type = simple", so systemd does not expect tor to fork. If the user has "RunAsDaemon 1" in their torrc, then things won't work as expected. This is e.g. the case on Debian (and derivatives), since there we pass "--defaults-torrc /usr/share/tor/tor-service-defaults-torrc" (that contains "RunAsDaemon 1") by default. The only solution I could find is to explicitly pass "--RunAsDaemon 0" when starting tor from the systemd unit file, which this commit does.
10 lines
513 B
Plaintext
10 lines
513 B
Plaintext
o Distribution:
|
|
- Explicitly disable RunAsDaemon in the systemd unit file.
|
|
Our current systemd unit uses "Type = simple", so systemd does
|
|
not expect tor to fork. If the user has "RunAsDaemon 1" in their
|
|
torrc, then things won't work as expected. This is e.g. the case
|
|
on Debian (and derivatives), since there we pass
|
|
"--defaults-torrc /usr/share/tor/tor-service-defaults-torrc"
|
|
(that contains "RunAsDaemon 1") by default.
|
|
Patch by intrigeri; resolves ticket 12731.
|