-
Committer:
Benjamin Allot
-
Date:
2020-04-19 15:29:09 UTC
-
Revision ID:
benjamin.allot@canonical.com-20200419152909-vlbekaj7is6codmt
Add RestartSec directive and increase StartLimitBurst
The rationale behind this change is that the default RestartSec is 100ms.
Upon error of the service (because of a crash or whatever), it attempts to restart
very quickly 5 times, then stay in a failed state until manually restarted.
As seen in systemd.unit manual for the StartLimitBurst setting:
Note that units which are configured for Restart= and which reach the start limit
are not attempted to be restarted anymore;
The new limit try one restart every 10 seconds and the StartLimitInterval is set to
StartLimitBurst * RestartSec to avoid reaching this state.