From d364014caf0f54f1fe1f8c591056ba7b01db4fdf Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Wed, 22 Mar 2017 15:03:08 -0500 Subject: 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 --- .../recipes-phosphor/host/obmc-op-control-host/op-start-host@.service | 1 + 1 file changed, 1 insertion(+) (limited to 'meta-phosphor/common/recipes-phosphor/host') diff --git a/meta-phosphor/common/recipes-phosphor/host/obmc-op-control-host/op-start-host@.service b/meta-phosphor/common/recipes-phosphor/host/obmc-op-control-host/op-start-host@.service index 644515520..8c5cfbb5d 100644 --- a/meta-phosphor/common/recipes-phosphor/host/obmc-op-control-host/op-start-host@.service +++ b/meta-phosphor/common/recipes-phosphor/host/obmc-op-control-host/op-start-host@.service @@ -9,6 +9,7 @@ After=obmc-power-on@%i.target Wants=mapper-wait@-org-openbmc-control-host%i.service After=mapper-wait@-org-openbmc-control-host%i.service Conflicts=obmc-chassis-stop@%i.target +ConditionPathExists=!/run/openbmc/host@%i-on [Service] Type=oneshot -- cgit v1.2.1