Do not run host start targets if host already on
This is the first commit in a series that will ensure
we do not run the host start services when the
host is already running.
Specifically this is to handle the situation where the
host is running and the BMC is rebooted.
Change-Id: I6c6a99a3c2aefff338c2eafe546a525999c357b4
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/common/recipes-phosphor/host/op-host-control/start_host@.service b/common/recipes-phosphor/host/op-host-control/start_host@.service
index 20a2938..14f816e 100644
--- a/common/recipes-phosphor/host/op-host-control/start_host@.service
+++ b/common/recipes-phosphor/host/op-host-control/start_host@.service
@@ -7,6 +7,7 @@
Wants=obmc-power-on@%i.target
After=obmc-power-on@%i.target
Conflicts=obmc-chassis-stop@%i.target
+ConditionPathExists=!/run/openbmc/host@%i-on
[Service]
ExecStart={sbindir}/openpower-proc-control startHost