summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-phosphor/state/files
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2018-01-10 18:16:28 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-03-01 17:19:14 +0300
commit253a5aa905bf3298817377d199becec9755cebf8 (patch)
tree0dae65be828864b06425d01e1e4d3817846f5d39 /meta-phosphor/common/recipes-phosphor/state/files
parenta304468028c34ef846130679b09b8e99f0e61761 (diff)
downloadopenbmc-253a5aa905bf3298817377d199becec9755cebf8.tar.xz
Keep fan services running until poweroff completes
All the fan services associated with controlling, monitoring and presence detection of fans need to remain active until a poweroff completes. This helps ensure thermal safety while a system is in transition to a powered off state. With the introduction of this new target (which runs last in the power off path), need to move the host reset service to running after it to ensure the power on in the reboot path does not start until the last power off target runs. Resolves openbmc/openbmc#2762 Change-Id: I4ca671d2c7de66e8bfa4bba607b06c88c0a6e7f9 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/state/files')
-rw-r--r--meta-phosphor/common/recipes-phosphor/state/files/phosphor-reboot-host@.service7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/state/files/phosphor-reboot-host@.service b/meta-phosphor/common/recipes-phosphor/state/files/phosphor-reboot-host@.service
index fdf84c1f33..f8f0171056 100644
--- a/meta-phosphor/common/recipes-phosphor/state/files/phosphor-reboot-host@.service
+++ b/meta-phosphor/common/recipes-phosphor/state/files/phosphor-reboot-host@.service
@@ -4,7 +4,12 @@ Wants=obmc-host-stop@%i.target
After=obmc-host-stop@%i.target
[Service]
-ExecStart={base_bindir}/systemctl start obmc-host-start@%i.target
+#ExecStart={base_bindir}/systemctl start obmc-host-start@%i.target
+# This service is starting another target that conflicts with the
+# target this service is running in. OpenBMC needs a refactor of
+# how it does its host reset path. Until then, this short term
+# solution does the job.
+ExecStart=/bin/sh -c "sleep 5 && systemctl start obmc-host-start@%i.target"
[Install]