[systemd-bugs] [Bug 87799] RFE: OnFailure version which is used when StartLimitBurst= or StartLimitInterval= are hit

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 2 23:26:50 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=87799

--- Comment #4 from Mikhail Kasimov <mikhail.kasimov at gmail.com> ---
>> The idea is to define the directive to send alarm-message _after_ StartLimitBurst=/StartLimitInterval= are hit, instead of sending alarm-message after _each_ service failure-state.

>Or are you saying that OnFailure= doesn't get triggerd when the start limit is hit?

Doc:
======
OnFailure=

A space-separated list of one or more units that are activated when this unit
enters the "failed" state.

(http://www.freedesktop.org/software/systemd/man/systemd.unit.html)
=====

So, as I can understand, OnFailure= action runs _every time_ when service gets
failure. In our test-case, user should get five e-mail alarms (on each service
failure).

After StartLimitBurst=/StartLimitInterval= are hit, systemd stops its attemps
to restart service without any alarms for user\admin. So, I'd like to have the
possibility to force systemd to send me alarm-message _only after_
StartLimitBurst=/StartLimitInterval= are hit (e.g. "Your service [...] is
stopped after 5 attemps in 10 seconds to be restarted. Fix your hands and
design your service correctly. :)" ).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150203/85f01fc9/attachment.html>


More information about the systemd-bugs mailing list