summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Geissler <geissonator@yahoo.com>2018-01-03 13:42:01 -0600
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-01-23 18:51:05 +0000
commit3cb857bc51a4c6dd47db2e075b13f9e01c897713 (patch)
treeab358b7bc4661bac4b2316bb66d550ec7d11ec58
parent7cf253a60315e854662d2d60cf863410fdfc50a0 (diff)
downloadtalos-openbmc-3cb857bc51a4c6dd47db2e075b13f9e01c897713.tar.gz
talos-openbmc-3cb857bc51a4c6dd47db2e075b13f9e01c897713.zip
Reduce service restart limit from 3 to 2 on fails
Further testing has shown that with core files enabled, it's possible to exceed the 10s default interval time when doing 3 restarts. Since all testing has shown either 1 restart fixing the issue, or no restarts fixing the issue, reduce the restart limit from 3 to 2 to ensure even if the service is core dumping, the restart limit will be hit within the 10s. Resolves openbmc/openbmc#2559 Change-Id: Ie1dac96eb1b4ced0bf166c12419db26924104ab4 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
-rw-r--r--meta-phosphor/common/recipes-core/systemd/systemd/service-restart-policy.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-phosphor/common/recipes-core/systemd/systemd/service-restart-policy.conf b/meta-phosphor/common/recipes-core/systemd/systemd/service-restart-policy.conf
index 0f950733d..8e440a46a 100644
--- a/meta-phosphor/common/recipes-core/systemd/systemd/service-restart-policy.conf
+++ b/meta-phosphor/common/recipes-core/systemd/systemd/service-restart-policy.conf
@@ -7,7 +7,7 @@
# going to get a fix on a restart of a service, the more time the better
# (think retries on device driver scenarios).
#
-# - Change the StartLimitBurst to 3
+# - Change the StartLimitBurst to 2
# Five just seems excessive for our services in openbmc. In all fail
# scenarios seen so far (other then with phosphor-hwmon), either
# restarting once does the job or restarting all 5 times does not help
@@ -17,4 +17,4 @@
[Manager]
DefaultRestartSec=1s
-DefaultStartLimitBurst=3
+DefaultStartLimitBurst=2
OpenPOWER on IntegriCloud