<div>Hello,<br></div><div><br></div><div>When a service fails but is auto restarted by systemd due to Restart= it still goes through “failed” state before entering “activating" state. For example this is ActiveState and SubState of a service that when running fails three times before it fails to be restarted due to StartLimitBurst=, as reported by org.freedesktop.DBus.Properties.PropertiesChanged signal.<br></div><div><br></div><div>active      running<br></div><div>failed      failed<br></div><div>activating  auto-restart<br></div><div>inactive    dead<br></div><div>active      running<br></div><div>failed      failed<br></div><div>activating  auto-restart<br></div><div>inactive    dead<br></div><div>active      running<br></div><div>failed      failed<br></div><div>activating  auto-restart<br></div><div>inactive    dead<br></div><div>failed      failed<br></div><div><br></div><div>I was reading the following documentation and I thought that service will enter “failed” state only after it can’t be restarted anymore:<br></div><div><a href="https://www.freedesktop.org/software/systemd/man/systemd.service.html">https://www.freedesktop.org/software/systemd/man/systemd.service.html</a><br></div><div><br></div><div>“Note that service restart is subject to unit start rate limiting configured with StartLimitIntervalSec= and StartLimitBurst=, see systemd.unit(5)<br></div><div>for details. A restarted service enters the failed state only after the start limits are reached."<br></div><div><br></div><div>So I would assume there would be only one "failed" right at the end.<br></div><div><br></div><div>Do I understand this sentence wrong?<br></div><div><br></div><div>Przemyslaw<br></div><div><br></div>