[tor-bugs] #25803 [Core Tor/Tor]: Infinite restart loop when daemon crashes
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Apr 22 13:09:49 UTC 2018
#25803: Infinite restart loop when daemon crashes
---------------------------+----------------------------------
Reporter: tiejohg2sahth | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor: unspecified
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: systemd? | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
---------------------------+----------------------------------
Comment (by tiejohg2sahth):
It appears that the file causing this behavior is
''/lib/systemd/system/tor[AT]default.service'' (replace [AT] by @, Trac
thinks it's an email), because of the line:
{{{
Restart=on-failure
}}}
Possibles fix for this:
* remove the Restart= line, the daemon won't restart if it crashed
* add RestartSec=X to increase the time systemd waits before restarting
the daemon, by default it is 100ms
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25803#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list