summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-phosphor/dbus
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2017-04-06 15:59:46 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-04-25 21:05:43 +0000
commit1fb2a9da8a4aaeb5b8320f7a1769550050c29d7d (patch)
tree1bfdb28f5ac48445e852be9ce085c8f27b583ea7 /meta-phosphor/common/recipes-phosphor/dbus
parentf4e327156665dfda421a6d27880e441a486f435f (diff)
downloadtalos-openbmc-1fb2a9da8a4aaeb5b8320f7a1769550050c29d7d.tar.gz
talos-openbmc-1fb2a9da8a4aaeb5b8320f7a1769550050c29d7d.zip
Add mapper-wait-until-removed service
Change-Id: Ib7d2c64d604ef5f8ffb65f320a034039cebcff1e Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/dbus')
-rw-r--r--meta-phosphor/common/recipes-phosphor/dbus/phosphor-mapper.bb2
-rw-r--r--meta-phosphor/common/recipes-phosphor/dbus/phosphor-mapper/mapper-wait-until-removed@.service10
2 files changed, 11 insertions, 1 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/dbus/phosphor-mapper.bb b/meta-phosphor/common/recipes-phosphor/dbus/phosphor-mapper.bb
index 9fcd1b949..e3bfbf1db 100644
--- a/meta-phosphor/common/recipes-phosphor/dbus/phosphor-mapper.bb
+++ b/meta-phosphor/common/recipes-phosphor/dbus/phosphor-mapper.bb
@@ -14,7 +14,7 @@ DEPENDS += "systemd"
DEPENDS += "autoconf-archive-native"
DBUS_SERVICE_${PN} += "xyz.openbmc_project.ObjectMapper.service"
-SYSTEMD_SERVICE_${PN} = "mapper-wait@.service"
+SYSTEMD_SERVICE_${PN} = "mapper-wait@.service mapper-wait-until-removed@.service"
RDEPENDS_libmapper += "libsystemd"
RDEPENDS_${PN} += " \
python-xml \
diff --git a/meta-phosphor/common/recipes-phosphor/dbus/phosphor-mapper/mapper-wait-until-removed@.service b/meta-phosphor/common/recipes-phosphor/dbus/phosphor-mapper/mapper-wait-until-removed@.service
new file mode 100644
index 000000000..1dd0124ee
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/dbus/phosphor-mapper/mapper-wait-until-removed@.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Wait for %I to be removed
+Wants=obmc-mapper.target
+After=obmc-mapper.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+Restart=no
+ExecStart={sbindir}/mapper wait-until-removed %I
OpenPOWER on IntegriCloud