summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-phosphor/state/files
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2018-07-10 17:06:56 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-07-16 06:43:05 +0300
commitd2aeec0642ffd0ed5b7372ae1d08e272418462b9 (patch)
tree0057cd5020cb001ee3067650f4a7e1b0e9726521 /meta-phosphor/common/recipes-phosphor/state/files
parentfb6b450934f0682141c302394cfc4c08e0cef5a7 (diff)
downloadopenbmc-d2aeec0642ffd0ed5b7372ae1d08e272418462b9.tar.xz
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>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/state/files')
-rw-r--r--meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.BMC.service5
-rw-r--r--meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Chassis.service5
-rw-r--r--meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Host.service4
3 files changed, 8 insertions, 6 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.BMC.service b/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.BMC.service
index 5224c98fa6..057af648d8 100644
--- a/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.BMC.service
+++ b/meta-phosphor/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
diff --git a/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Chassis.service b/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Chassis.service
index 9a467eb6c5..aaaa9e08c4 100644
--- a/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Chassis.service
+++ b/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Chassis.service
@@ -1,8 +1,9 @@
[Unit]
Description=Phosphor Chassis 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-chassis.service
+Wants=obmc-mapper.target
+After=obmc-mapper.target
+
[Service]
ExecStart=/usr/bin/env phosphor-chassis-state-manager
diff --git a/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Host.service b/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Host.service
index a70257e18a..26f523eaab 100644
--- a/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Host.service
+++ b/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Host.service
@@ -2,10 +2,10 @@
Description=Phosphor Host State Manager
Wants=mapper-wait@-xyz-openbmc_project-control-host0-auto_reboot.service
After=mapper-wait@-xyz-openbmc_project-control-host0-auto_reboot.service
-Wants=mapper-wait@-org-openbmc-managers-System.service
-After=mapper-wait@-org-openbmc-managers-System.service
Before=mapper-wait@-xyz-openbmc_project-state-host.service
After=phosphor-reset-host-running@0.service
+Wants=obmc-mapper.target
+After=obmc-mapper.target
[Service]
ExecStart=/usr/bin/env phosphor-host-state-manager