From 75ac5f43941a7fae88cec7d41215a168532e62a1 Mon Sep 17 00:00:00 2001 From: Matt Spinler Date: Thu, 12 Jul 2018 14:13:55 -0500 Subject: 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 --- .../state/files/xyz.openbmc_project.State.Chassis.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 aaaa9e08c..259dd16af 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 -- cgit v1.2.1