diff options
author | Matt Spinler <spinler@us.ibm.com> | 2018-04-25 18:35:14 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-05-02 19:56:54 +0300 |
commit | 2739f60c411cdbd648975c0922af8c85bd0a7356 (patch) | |
tree | 2c957f8b9fba7ef8a62b3d1788dbb5bd0fb69d72 /meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor | |
parent | 44e81f2ca57c4ac72aa38887c554c25281ca5b6f (diff) | |
download | openbmc-2739f60c411cdbd648975c0922af8c85bd0a7356.tar.xz |
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>
Diffstat (limited to 'meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor')
-rw-r--r-- | meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan%/phosphor-cooling-type@.service | 2 |
1 files changed, 2 insertions, 0 deletions
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 9a4f8df42..9086efb77 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 @@ After=mapper-wait@-xyz-openbmc_project-inventory.service 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 |