bare-metal-host-monitor: Start after x86-power-control
We need to ensure that the host-gpio-monitor starts after
xyz.openbmc_project.Chassis.Control.Power@.service, so the dbus objects
are ready.
Tested:
Set the bare metal flag /var/google/config-package/enable-bm.flag
Power cycled the machine.
Ensured the host-gpio-monitor could query the dbus property at startup.
Also confirmed the expected systemd service ordering at startup:
xyz.openbmc_project.Chassis.Control.Power@.service, followed by
host-gpio-monitor@.service.
Change-Id: Ibfbac32586981a14ca276f40080a6e698f342aac
Signed-off-by: John Wedig <johnwedig@google.com>
diff --git a/subprojects/bare-metal-host-monitor/host-gpio-monitor@.service.in b/subprojects/bare-metal-host-monitor/host-gpio-monitor@.service.in
index 7afcd97..e4accf2 100644
--- a/subprojects/bare-metal-host-monitor/host-gpio-monitor@.service.in
+++ b/subprojects/bare-metal-host-monitor/host-gpio-monitor@.service.in
@@ -2,6 +2,7 @@
Description=gBMC bare-metal GPIO monitoring for host %i
ConditionPathExists=/var/google/config-package/enable-bm.flag
After=phosphor-ipmi-host.service
+After=xyz.openbmc_project.Chassis.Control.Power@%i.service
[Service]
Restart=always