[systemd-devel] Service that fails and is auto restarted still goes through failed state
przemn
przemn at o2.pl
Fri Aug 6 08:43:06 UTC 2021
Hello, 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.Propertie signal. active running failed failed activating auto-restart inactive dead active running failed failed activating auto-restart inactive dead active running failed failed activating auto-restart inactive dead failed failed I was reading the following documentation and I thought that service will enter “failed” state only after it can’t be restarted anymore: www.freedesktop.org www.freedesktop.org “Note that service restart is subject to unit start rate limiting configured with StartLimitIntervalSec= and StartLimitBurst=, see systemd.unit(5) for details. A restarted service enters the failed state only after the start limits are reached." So I would assume there would be only one "failed" right at the end. Do I understand this sentence wrong? Przemyslaw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20210806/492b5c56/attachment.htm>
More information about the systemd-devel
mailing list