<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [feature request] Sending alarm-message to admin on StartLimitBurst= и StartLimitInterval= are hit"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=87799#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [feature request] Sending alarm-message to admin on StartLimitBurst= и 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>Sorry, moved OnFailure= directive into right section - [Unit]:

===============
[Unit]
Description=Test-Unit
OnFailure=./alarm-message.sh

[Service]
...
Restart=on-failure
StartLimitBurst=5
StartLimitInterval=10s
FailureAction=none

[Install]
WantedBy=multi-user.target
===============</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>