commit | 271835196dbce2eefa6fa62480d9414b1474da86 | [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 | 9d1cf90fd92a92dcae176a1b340f7e04741f1ed1 | |
parent | 143cf5461e37efd056c8a4573beaf838d498efbe [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-witherspoon/recipes-phosphor/chassis/vcs-pre-post/ucd_disable_vcs@.service b/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/ucd_disable_vcs@.service index cf2fdce..1608894 100644 --- a/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/ucd_disable_vcs@.service +++ b/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/ucd_disable_vcs@.service
@@ -3,6 +3,7 @@ Wants=obmc-power-start-pre@%i.target Before=obmc-power-start-pre@%i.target Conflicts=obmc-power-chassis-off@%i.target +ConditionPathExists=!/run/openbmc/chassis@%i-on [Service] ExecStart={bindir}/ucd_disable_vcs.sh
diff --git a/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/vcs_off@.service b/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/vcs_off@.service index f929afb..81cc681 100644 --- a/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/vcs_off@.service +++ b/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/vcs_off@.service
@@ -3,6 +3,7 @@ Wants=obmc-power-start-pre@%i.target Before=obmc-power-start-pre@%i.target Conflicts=obmc-power-chassis-off@%i.target +ConditionPathExists=!/run/openbmc/chassis@%i-on [Service] ExecStart={bindir}/vcs_off.sh
diff --git a/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/vcs_on@.service b/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/vcs_on@.service index df74920..181026c 100644 --- a/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/vcs_on@.service +++ b/meta-witherspoon/recipes-phosphor/chassis/vcs-pre-post/vcs_on@.service
@@ -5,6 +5,7 @@ Wants=obmc-host-start-pre@%i.target Before=obmc-host-start-pre@%i.target Conflicts=obmc-power-chassis-off@%i.target +ConditionPathExists=!/run/openbmc/chassis@%i-on [Service] ExecStart={bindir}/vcs_on.sh