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>
diff --git a/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Chassis.service b/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Chassis.service
index aaaa9e0..259dd16 100644
--- a/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Chassis.service
+++ b/common/recipes-phosphor/state/files/xyz.openbmc_project.State.Chassis.service
@@ -3,7 +3,7 @@
 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