mapper-wait: add service dependency
Even though ObjectMapper is dbus-activated, it takes long enough to
start up that the dbus client operation times out. This causes a
whole bunch of failed services on boot of the BMC. Add an explicit
dependency back on the service in order to give the service time to
start up.
Tested: Applied on Bletchley and see no restarts of the various
mapper-wait invocations now.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I473a8f251906a8267e2c44600b6802adfea1fd0e
diff --git a/src/systemd/mapper-wait@.service.in b/src/systemd/mapper-wait@.service.in
index a3df21f..04e95b7 100644
--- a/src/systemd/mapper-wait@.service.in
+++ b/src/systemd/mapper-wait@.service.in
@@ -1,5 +1,7 @@
[Unit]
Description=Wait for %I
+Wants=xyz.openbmc_project.ObjectMapper.service
+After=xyz.openbmc_project.ObjectMapper.service
[Service]
Type=oneshot