blob: 54516c2d47b49a9d597e74188e7daceb6a874da5 [file] [log] [blame]
Andrew Geissler51d40142017-09-07 14:32:45 -05001# This file overrides some defaults for systemd
2#
3# - Change the RestartSec from 100ms to 1s.
4# When a service hits a failure, our new debug collection service kicks
5# in. When a core file is involved, it's been found that generating 5 core
6# files within ~500ms puts a huge strain on the BMC. Also, if the bmc is
7# going to get a fix on a restart of a service, the more time the better
8# (think retries on device driver scenarios).
9#
Andrew Geissler11a2b4d2018-01-03 13:42:01 -060010# - Change the StartLimitBurst to 2
Andrew Geissler51d40142017-09-07 14:32:45 -050011# Five just seems excessive for our services in openbmc. In all fail
12# scenarios seen so far (other then with phosphor-hwmon), either
13# restarting once does the job or restarting all 5 times does not help
14# and we just end up hitting the 5 limit anyway.
15#
Andrew Geissler3537e1c2018-09-27 14:26:45 -050016# - Change the StartLimitIntervalSec to 30s
Andrew Geissler3fedf8d2018-04-26 11:07:37 -070017# The BMC CPU performance is already challenged. When a service is
18# failing and a core dump is being generated and collected into a dump,
19# it's even more challenged. Recent failures have shown situations where
20# the service does not fail again until 15-20 seconds after the initial
21# failure which means the default of 10s for this results in the service
Andrew Geissler3537e1c2018-09-27 14:26:45 -050022# being restarted indefinitely. Change this to 30s to only allow a service
23# to be restarted StartLimitBurst times within a 30s interval before
24# being put in a permanent fail state.
Andrew Geissler3fedf8d2018-04-26 11:07:37 -070025#
Andrew Geissler51d40142017-09-07 14:32:45 -050026# See systemd-system.conf(5) for details on the conf files
27
28[Manager]
29DefaultRestartSec=1s
Andrew Geissler11a2b4d2018-01-03 13:42:01 -060030DefaultStartLimitBurst=2
Andrew Geissler3537e1c2018-09-27 14:26:45 -050031DefaultStartLimitIntervalSec=30s