diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-08-08 23:21:19 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-08-09 23:18:00 +0300 |
commit | 504b0c4320bfdf105d9dcc9dc39524d20c25b5c1 (patch) | |
tree | a120d8325b2da2fefe3e0a25e811e7c585882bc7 /meta-phosphor/common/recipes-phosphor/state | |
parent | 6f23d594cf43dc703844740cef42e27867c23327 (diff) | |
download | openbmc-504b0c4320bfdf105d9dcc9dc39524d20c25b5c1.tar.xz |
Ensure applications wait for reset services
When a BMC reboot occurs with the host running, need
to ensure the reset targets and services run before
we start other application that depend on whether
the host is running
Specifically, don't start phosphor-host-state-manager until
it's been determined if the host is up. Don't start
phosphor-discover-system-state until the state of the
chassis is known.
Change-Id: I458fa78802cd9ecca99c54834512bfebf04b5012
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/state')
2 files changed, 2 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/state/files/phosphor-discover-system-state@.service b/meta-phosphor/common/recipes-phosphor/state/files/phosphor-discover-system-state@.service index 7dc09d3cd..4e3439658 100644 --- a/meta-phosphor/common/recipes-phosphor/state/files/phosphor-discover-system-state@.service +++ b/meta-phosphor/common/recipes-phosphor/state/files/phosphor-discover-system-state@.service @@ -6,6 +6,7 @@ Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service After=mapper-wait@-xyz-openbmc_project-state-host%i.service Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service +After=op-reset-chassis-on@%i.service [Service] Restart=no diff --git a/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Host.service b/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Host.service index 3b8551b7d..9adeed9fb 100644 --- a/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Host.service +++ b/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Host.service @@ -5,6 +5,7 @@ After=mapper-wait@-xyz-openbmc_project-control-host0-auto_reboot.service Wants=mapper-wait@-org-openbmc-managers-System.service After=mapper-wait@-org-openbmc-managers-System.service Before=mapper-wait@-xyz-openbmc_project-state-host.service +After=phosphor-reset-host-running@0.service [Service] ExecStart={sbindir}/phosphor-host-state-manager |