[systemd-devel] Systemd flapping detection

Mirco Tischler mt-ml at gmx.de
Wed Nov 2 18:22:37 PDT 2011


2011/11/3 tsuraan <tsuraan at gmail.com>:
>> RestartSec allows you to set the time waited before restarting so that
>> you can avoid systemd needing to restart the service too often before
>> it starts successfully.
>
> Is there a cooldown period that I need to exceed to prevent systemd
> from giving up?  Assuming it takes 5 failures (however that's defined)
> before it gives up, and I have a RestartSec of 15s, then it will be
> 1.5min before it would give up.  Is that going to be long enough that
> it will keep trying a sixth time, or is it just not possible to have
> it keep trying forever?
>
I'm sorry, but I don't know the internals. The only tip I have is to
set RestartSec high enough that this case never happens.

Mirco


More information about the systemd-devel mailing list