[tor-bugs] #12731 [Tor]: systemd unit file should explicitly pass --RunAsDaemon 0

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jul 29 12:21:12 UTC 2014


#12731: systemd unit file should explicitly pass --RunAsDaemon 0
---------------------------------+---------------------
 Reporter:  intrigeri            |          Owner:
     Type:  defect               |         Status:  new
 Priority:  normal               |      Milestone:
Component:  Tor                  |        Version:
 Keywords:  tor-relays, systemd  |  Actual Points:
Parent ID:                       |         Points:
---------------------------------+---------------------
 The 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 can see to this problem is to explicitly pass "--
 RunAsDaemon 0" when starting tor from the systemd unit file.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12731>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list