Correct the dependency for state related service files
The dependency on the legacy system service is obsolete and so it
is removed. The dependency on the mapper is added.
Change-Id: I6afd2020f73829df7c5a53342087a3051939928d
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/common/recipes-phosphor/state/files/xyz.openbmc_project.State.BMC.service b/common/recipes-phosphor/state/files/xyz.openbmc_project.State.BMC.service
index 5224c98..057af64 100644
--- a/common/recipes-phosphor/state/files/xyz.openbmc_project.State.BMC.service
+++ b/common/recipes-phosphor/state/files/xyz.openbmc_project.State.BMC.service
@@ -1,8 +1,9 @@
[Unit]
Description=Phosphor BMC State Manager
-Wants=mapper-wait@-org-openbmc-managers-System.service
-After=mapper-wait@-org-openbmc-managers-System.service
Before=mapper-wait@-xyz-openbmc_project-state-bmc.service
+Wants=obmc-mapper.target
+After=obmc-mapper.target
+
[Service]
ExecStart=/usr/bin/env phosphor-bmc-state-manager