summaryrefslogtreecommitdiff
path: root/meta-phosphor
diff options
context:
space:
mode:
authorAndrew Geissler <geissonator@yahoo.com>2020-10-30 21:43:52 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-11-05 04:20:54 +0300
commit3e4ba5f568acc41f3c8686bdd68fc59b01e16ee7 (patch)
tree2a3278d32cabb9688424034e7d4544e74c8fef89 /meta-phosphor
parent38d957a248b69bb5c8b8542d9eb06405f46bc8ee (diff)
downloadopenbmc-3e4ba5f568acc41f3c8686bdd68fc59b01e16ee7.tar.xz
soft-off: ensure ipmi soft off is run in correct seq
The flow of synchronization targets during a obmc-host-stop@.target is the following: obmc-host-stop-pre -> obmc-host-stopping -> obmc-host-stopped The obmc-host-stop-pre is where we notify the host that a shutdown is occurring and allow it to gracefully shut itself down. This is where xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service should run. (From meta-phosphor rev: 7290bebb60ee03ff649c04fd430bb4dbef979fe9) Change-Id: Ib3dd748e73b0d4a056d508caabe6c9c2351b5ab8 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-phosphor')
-rw-r--r--meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service
index ce4c5614b..a3222a950 100644
--- a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service
+++ b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host/xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service
@@ -2,8 +2,8 @@
Description=Soft power off of the host
Wants=mapper-wait@-org-openbmc-HostIpmi-1.service
After=mapper-wait@-org-openbmc-HostIpmi-1.service
-Wants=obmc-host-stopping@0.target
-Before=obmc-host-stopping@0.target
+Wants=obmc-host-stop-pre@0.target
+Before=obmc-host-stop-pre@0.target
Conflicts=obmc-host-start@0.target
ConditionPathExists=!/run/openbmc/host@0-request
ConditionPathExists=!/lib/systemd/system/pldmSoftPowerOff.service