summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-phosphor/state/files
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2018-07-12 22:13:55 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-07-19 04:38:22 +0300
commit75ac5f43941a7fae88cec7d41215a168532e62a1 (patch)
treebc166b6390096630a4de4999431d1730ba888610 /meta-phosphor/common/recipes-phosphor/state/files
parent132c096d655e075c72fd1c35a459644971e32810 (diff)
downloadopenbmc-75ac5f43941a7fae88cec7d41215a168532e62a1.tar.xz
Add dependency to the chassis state service
On startup, the service attempts to read the PGOOD property to know if the system is already on. For that to work, the org.openbmc.Control.Power service must already be running, so ensure that is the case. Having this check working right allows the code to know if there was an AC loss while booted. Resolves openbmc/openbmc#3266 Tested: Check that the service knows power is on when rebooted at runtime. Change-Id: I1314865609ecdf3765603f8bd8ed1add6888e558 Signed-off-by: Matt Spinler <spinler@us.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.Chassis.service2
1 files changed, 1 insertions, 1 deletions
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 aaaa9e08c4..259dd16af0 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
@@ -3,7 +3,7 @@ Description=Phosphor Chassis State Manager
Before=mapper-wait@-xyz-openbmc_project-state-chassis.service
Wants=obmc-mapper.target
After=obmc-mapper.target
-
+After=org.openbmc.control.Power@0.service
[Service]
ExecStart=/usr/bin/env phosphor-chassis-state-manager