[tor-bugs] #25803 [Core Tor/Tor]: Infinite restart loop when daemon crashes
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Apr 23 20:09:22 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, tor-relay, security-low | Actual Points:
Parent ID: | Points: 0.1
Reviewer: | Sponsor:
----------------------------------------------+----------------------------
Comment (by tiejohg2sahth):
Replying to [comment:5 teor]:
> We could also avoid restarting when Tor crashes, or exits badly. We
would need to work out a list of signals and exit statuses that should
prevent a restart. For example:
> {{{
> RestartPreventExitStatus= 1 6 SIGABRT SIGSEGV
> }}}
Why not use:
{{{
Restart=on-success
}}}
which would automatically prevent restart for non zero exit codes (tor
error, or process killed by signal).
See the table at
https://www.freedesktop.org/software/systemd/man/systemd.service.html#Restart=
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25803#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list