summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-phosphor/mboxd
diff options
context:
space:
mode:
authorAndrew Geissler <geissonator@yahoo.com>2018-01-30 17:17:17 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-02-01 17:04:23 +0300
commit4ef5f7721669ddda42fa635a8dd1357622a34a94 (patch)
tree140adf87f8c07241453567401dac03ebbf4026c9 /meta-phosphor/common/recipes-phosphor/mboxd
parentf5ae3ed19182c96dca55c4ae0ff794ee0900b8eb (diff)
downloadopenbmc-4ef5f7721669ddda42fa635a8dd1357622a34a94.tar.xz
Don't run mbox reset until dbus object available
The mbox reset command run within this service requires the mboxd dbus object (org.openbmc.mbox) be available. Prior to this commit, OpenBMC tended to get lucky with the ordering but there was no guarantee. This commit will ensure the ordering is always right. Resolves openbmc/openbmc#2850 Change-Id: Ia9efeb6e06ac47018d449ee2cab2651bc00ab0ed Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/mboxd')
-rw-r--r--meta-phosphor/common/recipes-phosphor/mboxd/mboxd/mboxd-reload@.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/mboxd/mboxd/mboxd-reload@.service b/meta-phosphor/common/recipes-phosphor/mboxd/mboxd/mboxd-reload@.service
index 7fb2a5bc3..be02c7a2c 100644
--- a/meta-phosphor/common/recipes-phosphor/mboxd/mboxd/mboxd-reload@.service
+++ b/meta-phosphor/common/recipes-phosphor/mboxd/mboxd/mboxd-reload@.service
@@ -2,6 +2,8 @@
Description=Reload mboxd during power on
Wants=obmc-power-start-pre@%i.target
Before=obmc-power-start-pre@%i.target
+Wants=mapper-wait@-org-openbmc-mboxd.service
+After=mapper-wait@-org-openbmc-mboxd.service
Conflicts=obmc-chassis-poweroff@%i.target
[Service]