<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - RFE: OnFailure version which is used when StartLimitBurst= or StartLimitInterval= are hit"
href="https://bugs.freedesktop.org/show_bug.cgi?id=87799#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - RFE: OnFailure version which is used when StartLimitBurst= or StartLimitInterval= are hit"
href="https://bugs.freedesktop.org/show_bug.cgi?id=87799">bug 87799</a>
from <span class="vcard"><a class="email" href="mailto:mikhail.kasimov@gmail.com" title="Mikhail Kasimov <mikhail.kasimov@gmail.com>"> <span class="fn">Mikhail Kasimov</span></a>
</span></b>
<pre><span class="quote">>> 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.</span >
<span class="quote">>Or are you saying that OnFailure= doesn't get triggerd when the start limit is hit?</span >
Doc:
======
OnFailure=
A space-separated list of one or more units that are activated when this unit
enters the "failed" state.
(<a href="http://www.freedesktop.org/software/systemd/man/systemd.unit.html">http://www.freedesktop.org/software/systemd/man/systemd.unit.html</a>)
=====
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. :)" ).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>