From 8b470ee4b54582b599debf5ab5b996eb06525093 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Tue, 29 Jul 2014 12:23:04 +0000 Subject: Explicitly disable RunAsDaemon in the systemd unit file (#12731). 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. --- changes/bug12731-systemd-no-run-as-daemon | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 changes/bug12731-systemd-no-run-as-daemon (limited to 'changes') diff --git a/changes/bug12731-systemd-no-run-as-daemon b/changes/bug12731-systemd-no-run-as-daemon new file mode 100644 index 0000000000..f92e5aff00 --- /dev/null +++ b/changes/bug12731-systemd-no-run-as-daemon @@ -0,0 +1,9 @@ + 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. -- cgit v1.2.3-54-g00ecf