[systemd-devel] StartLimitBurst/StartLimitInterval not getting enforced

prashantkumar dhotre prashantkumardhotre at gmail.com
Wed Mar 6 10:24:27 UTC 2019


Follow up

On Wed, Mar 6, 2019 at 12:59 PM prashantkumar dhotre <
prashantkumardhotre at gmail.com> wrote:

> But the doc says
> https://www.freedesktop.org/software/systemd/man/systemd.unit.html
> " however, they apply to all kinds of starts (including manual), not just
> those triggered by theRestart= logic"
> so a sper doc , they apply to manual start/stop too.
>
> On Wed, Mar 6, 2019 at 12:53 PM Bruno Vernay <brunovern.a at gmail.com>
> wrote:
>
>> Hi,
>> I would say that they limit restarts on errors (process crashes)
>> Not an explicit command to stop and restart. There are no errors here.
>>
>> Bruno
>>
>> On Wed, Mar 6, 2019 at 8:02 AM prashantkumar dhotre <
>> prashantkumardhotre at gmail.com> wrote:
>>
>>> Hi,
>>> I use v230 systemd.
>>> I see that even after repeated stop and start  of my service, i dont see
>>> it going to going to failed state.
>>> I have not configured any StartLimitBurst/StartLimitInterval , so
>>> default values should take effect but I dont se ethat happening. service
>>> always restarts.
>>> Is this behavior expected ? or this is a bug which got fixed in later
>>> releases ?
>>>
>>> $  while true; do systemctl stop snmpd;  systemctl start snmpd;
>>> systemctl status snmpd;done
>>>
>>> $ cat snmpd.service
>>> ...
>>>
>>> [Service]
>>> ExecStart= /usr/sbin/snmpd
>>> Restart=always
>>> ...
>>>
>>>
>>> Thanks
>>>
>>>
>>> _______________________________________________
>>> systemd-devel mailing list
>>> systemd-devel at lists.freedesktop.org
>>> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>>
>>
>>
>> --
>> Bruno VERNAY
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20190306/c87b9154/attachment.html>


More information about the systemd-devel mailing list