service-deps: add missing discover system state dep
The discover system state software makes d-bus calls to the settings
service and does not handle it missing in a graceful manner. Ensure the
setting service is running before starting this service.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Icb362b2472c3efb135941a7124fc9c3b4b069a00
diff --git a/service_files/phosphor-discover-system-state@.service b/service_files/phosphor-discover-system-state@.service
index 345266c..04abc86 100644
--- a/service_files/phosphor-discover-system-state@.service
+++ b/service_files/phosphor-discover-system-state@.service
@@ -9,6 +9,8 @@
Wants=mapper-wait@-xyz-openbmc_project-state-bmc0.service
After=mapper-wait@-xyz-openbmc_project-state-bmc0.service
After=op-reset-chassis-on@%i.service
+Wants=xyz.openbmc_project.Settings.service
+After=xyz.openbmc_project.Settings.service
ConditionPathExists=!/run/openbmc/chassis@%i-on
[Service]