diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-03-22 15:03:08 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-03-25 01:51:25 +0000 |
commit | d364014caf0f54f1fe1f8c591056ba7b01db4fdf (patch) | |
tree | 04ebd3d757c24f251c615ce11f36b4f501028674 /meta-openbmc-machines | |
parent | cb147293e8743086028e7cf93614d08c95b529f4 (diff) | |
download | talos-openbmc-d364014caf0f54f1fe1f8c591056ba7b01db4fdf.tar.gz talos-openbmc-d364014caf0f54f1fe1f8c591056ba7b01db4fdf.zip |
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>
Diffstat (limited to 'meta-openbmc-machines')
-rw-r--r-- | meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-host-control/start_host@.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-host-control/start_host@.service b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-host-control/start_host@.service index 20a2938e3..14f816ee7 100644 --- a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-host-control/start_host@.service +++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-host-control/start_host@.service @@ -7,6 +7,7 @@ Before=obmc-host-started@%i.target 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 |