diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-05-27 01:40:03 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-06-03 15:57:36 +0300 |
commit | 5208dbd3b5dfbdfd29f567475ab81c524c1f999e (patch) | |
tree | 133d52ce889c34a8d12188007ce52df8131f57c4 /meta-phosphor/common/recipes-phosphor/chassis | |
parent | 4faabf42fbc0be6214d81e80ab321c837bdd7984 (diff) | |
download | openbmc-5208dbd3b5dfbdfd29f567475ab81c524c1f999e.tar.xz |
Ensure host-shutdown target calls the host-stop target
As a part of the soft power off (host-shutdown) ensure
that the host-stop target always gets called. Updated the
involved services to ensure they are run in the correct order.
Change-Id: I7e9113631786f0d0cb0f89b94c4b97fdc0328e7b
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/chassis')
3 files changed, 5 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/chassis/obmc-op-control-power/op-power-stop@.service b/meta-phosphor/common/recipes-phosphor/chassis/obmc-op-control-power/op-power-stop@.service index dd3570e011..0833afb471 100644 --- a/meta-phosphor/common/recipes-phosphor/chassis/obmc-op-control-power/op-power-stop@.service +++ b/meta-phosphor/common/recipes-phosphor/chassis/obmc-op-control-power/op-power-stop@.service @@ -2,6 +2,7 @@ Description=Stop Power%i Wants=obmc-power-stop@%i.target Before=obmc-power-stop@%i.target +Wants=obmc-power-stop-pre@%i.target After=obmc-power-stop-pre@%i.target Wants=mapper-wait@-org-openbmc-control-power%i.service After=mapper-wait@-org-openbmc-control-power%i.service diff --git a/meta-phosphor/common/recipes-phosphor/chassis/obmc-op-control-power/op-wait-power-off@.service b/meta-phosphor/common/recipes-phosphor/chassis/obmc-op-control-power/op-wait-power-off@.service index ad2b8b265f..de2ff70b2a 100644 --- a/meta-phosphor/common/recipes-phosphor/chassis/obmc-op-control-power/op-wait-power-off@.service +++ b/meta-phosphor/common/recipes-phosphor/chassis/obmc-op-control-power/op-wait-power-off@.service @@ -3,6 +3,8 @@ Description=Wait for Power%i to turn off Before=obmc-power-off@%i.target Wants=obmc-power-stop@%i.target Before=obmc-power-stop@%i.target +Wants=obmc-power-stop-pre@%i.target +After=obmc-power-stop-pre@%i.target Wants=mapper-wait@-org-openbmc-control-power%i.service After=mapper-wait@-org-openbmc-control-power%i.service Conflicts=obmc-chassis-poweron@%i.target diff --git a/meta-phosphor/common/recipes-phosphor/chassis/obmc-watchdog/obmc-stop-watchdog@.service b/meta-phosphor/common/recipes-phosphor/chassis/obmc-watchdog/obmc-stop-watchdog@.service index d1494036f3..63f340b3be 100644 --- a/meta-phosphor/common/recipes-phosphor/chassis/obmc-watchdog/obmc-stop-watchdog@.service +++ b/meta-phosphor/common/recipes-phosphor/chassis/obmc-watchdog/obmc-stop-watchdog@.service @@ -2,6 +2,8 @@ Description=Stop Watchdog%i Wants=mapper-wait@-org-openbmc-watchdog-host%i.service After=mapper-wait@-org-openbmc-watchdog-host%i.service +Wants=obmc-host-stop-pre@%i.target +Before=obmc-host-stop-pre@%i.target Conflicts=obmc-host-start@%i.target [Service] |