Skip to content

Commit

Permalink
meta-ampere:mtmitchell: reduce fan present restart frequency
Browse files Browse the repository at this point in the history
When BMC boots up with the host is on, sometimes phosphor-fan-presence-tach
starts early before power services, and it keeps restarting every 1 second
because there is no fan tach sensors yet. This causes the failure of
obmc-chassis-on service which leads to the failure in updating the host status.
This commit reduces the restart frequency of phosphor-fan-presence-tach service
to prevent the failure of obmc-chassis-on.

Tested:
1. Stress bmc reset cold.
2. The host state should be updated correctly.

Signed-off-by: Thu Ba Nguyen <[email protected]>
  • Loading branch information
Thu Ba Nguyen authored and vkphong-ampere committed Jul 18, 2022
1 parent 4b50607 commit f025f05
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Phosphor Fan Presence Tach Daemon
Wants=xyz.openbmc_project.fansensor.service
After=xyz.openbmc_project.fansensor.service
StartLimitIntervalSec=30
StartLimitBurst=3

[Service]
Restart=on-failure
ExecStart=phosphor-fan-presence-tach
RestartSec=10
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SRC_URI:append:mtmitchell = "file://events.json \
file://presence.json \
file://[email protected] \
file://[email protected] \
file://[email protected] \
"

do_configure:prepend:mtmitchell () {
Expand All @@ -30,4 +31,5 @@ do_install:append:mtmitchell () {
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/phosphor-fan-monitor@.service ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/phosphor-fan-control@.service ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/phosphor-fan-presence-tach@.service ${D}${systemd_system_unitdir}
}

0 comments on commit f025f05

Please sign in to comment.