commit | 4d3bdface42ac2a8002aa762af26bad177abece5 | [log] [tgz] |
---|---|---|
author | Andrew Geissler <andrewg@us.ibm.com> | Thu Mar 02 16:25:43 2017 -0600 |
committer | Andrew Geissler <geissonator@yahoo.com> | Wed Mar 15 19:55:20 2017 +0000 |
tree | bda017f8d094ac9595ba6bb6865d59ff84f8b4a5 | |
parent | 0e1c8253f7868f49649e820fb8877f1cfa60bd54 [diff] |
Do not run chassis power target services if power on This is the first commit in a series that will ensure we do not run the chassis power on services when the chassis is already on. Specifically this is to handle the situation where the chassis is on and the BMC is rebooted. Change-Id: I733ca076f044731a4ba327fe2f46302dce5f4edd Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-disable@.service b/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-disable@.service index f9fd425..8561bf2 100644 --- a/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-disable@.service +++ b/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-disable@.service
@@ -3,6 +3,7 @@ Wants=obmc-power-stop-pre@%i.target Before=obmc-power-stop-pre@%i.target Conflicts=obmc-chassis-start@%i.target +ConditionPathExists=!/run/openbmc/chassis@%i-on [Service] ExecStart={bindir}/zaius_avsbus.sh disable
diff --git a/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-enable@.service b/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-enable@.service index 5980d7c..f305907 100644 --- a/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-enable@.service +++ b/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-enable@.service
@@ -3,6 +3,7 @@ Wants=obmc-host-start-pre@%i.target Before=obmc-host-start-pre@%i.target Conflicts=obmc-chassis-stop@%i.target +ConditionPathExists=!/run/openbmc/chassis@%i-on [Service] ExecStart={bindir}/zaius_avsbus.sh vdn_max