[systemd-devel] OnFailure=
Jakob Schürz
wertstoffe at nurfuerspam.de
Thu Mar 8 09:06:32 UTC 2018
Am 2018-03-08 um 07:03 schrieb Andrei Borzenkov:
> 08.03.2018 02:37, Jakob Schürz пишет:
[...]
>
> This is apparently wrong, because service briefly goes via "failed"
> state every time it fails. It is true that if Restart= is set it
> immediately follows by "activating" state again, but OnFailure actions
> are still taken.
>
> So from end-user perspective unit indeed remains "failed" only when
> limits are reached, but internally it does transition via "failed" state
> every time.
>
>
>>
>> But in this testcase, the unit listet in OnFailure is called every time,
>> the unit failes, restarts again fails again, and after 5 times
>> (=StartLimitBurst), the unit falls into failed state... Here should be
>> the only one time, where "OnFailure=" is hit...
>>
>> My systemd-Version is 237-3 from debian.
>>
>> Should i file a Bug in bugs.freedesktop.org?
>>
>
>
> You should create issue on github, this this where primary bug tracker
> is today:
>
> https://github.com/systemd/systemd/
>
Thanks. So i filed a bug there;
https://github.com/systemd/systemd/issues/8398
Jakob
More information about the systemd-devel
mailing list