diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-05-30 11:29:32 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-06-03 12:57:42 +0000 |
commit | aa8daffd6b7ce409012cbc2b0fe2b3f98824f774 (patch) | |
tree | 059b87b351bc7f2ee615cd2377bad6f7c443e8b2 /meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host | |
parent | 5208dbd3b5dfbdfd29f567475ab81c524c1f999e (diff) | |
download | talos-openbmc-aa8daffd6b7ce409012cbc2b0fe2b3f98824f774.tar.gz talos-openbmc-aa8daffd6b7ce409012cbc2b0fe2b3f98824f774.zip |
Only run soft power off when not host requested
When a power off or reboot is host initiated, do
not run the soft power off service. Since the host
is the one requesting the action, there's no need to
execute the soft off function (notification to host
to shutdown).
Change-Id: Ia6e833598e6042646e5d5bd17821ed29e141fa6f
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host')
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host/xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host/xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host/xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service index d1a814fd0..2f61b0757 100644 --- a/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host/xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service +++ b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host/xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service @@ -4,6 +4,7 @@ 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 +ConditionPathExists=!/run/openbmc/host@0-request [Service] Restart=no |