From 1fb2a9da8a4aaeb5b8320f7a1769550050c29d7d Mon Sep 17 00:00:00 2001 From: Adriana Kobylak Date: Thu, 6 Apr 2017 15:59:46 -0500 Subject: Add mapper-wait-until-removed service Change-Id: Ib7d2c64d604ef5f8ffb65f320a034039cebcff1e Signed-off-by: Adriana Kobylak --- meta-phosphor/common/recipes-phosphor/dbus/phosphor-mapper.bb | 2 +- .../dbus/phosphor-mapper/mapper-wait-until-removed@.service | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 meta-phosphor/common/recipes-phosphor/dbus/phosphor-mapper/mapper-wait-until-removed@.service (limited to 'meta-phosphor') 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 -- cgit v1.2.1