[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs