commit | 2739f60c411cdbd648975c0922af8c85bd0a7356 | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Wed Apr 25 10:35:14 2018 -0500 |
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | Wed May 02 16:56:54 2018 +0000 |
tree | 2c957f8b9fba7ef8a62b3d1788dbb5bd0fb69d72 | |
parent | 44e81f2ca57c4ac72aa38887c554c25281ca5b6f [diff] |
wspoon: Make cooling-type service a oneshot Change the type of the phosphor-cooling-type service to a oneshot, and also tell it to remain after exit. This is so that any services that depend on this won't start until the the phosphor-cooling-type application is done so they can rely on the cooling type property being set in the inventory. Tested: Checked that a service that depends on this one and gets the cooling type will read the correct value. Change-Id: Id4852983a31787b19bee8a2106a46128c294b2ce Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan%/phosphor-cooling-type@.service b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan%/phosphor-cooling-type@.service index 9a4f8df..9086efb 100644 --- a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan%/phosphor-cooling-type@.service +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan%/phosphor-cooling-type@.service
@@ -5,6 +5,8 @@ ConditionPathExists={envfiledir}/obmc/phosphor-fan/phosphor-cooling-type-%i.conf [Service] +Type=oneshot +RemainAfterExit=yes EnvironmentFile={envfiledir}/obmc/phosphor-fan/phosphor-cooling-type-%i.conf ExecStart=/usr/bin/env phosphor-cooling-type ${{OBJPATH}} ${{AIR}} ${{WATER}} ${{DEVICE}} ${{CODE}} SyslogIdentifier=phosphor-cooling-type