From 2739f60c411cdbd648975c0922af8c85bd0a7356 Mon Sep 17 00:00:00 2001 From: Matt Spinler Date: Wed, 25 Apr 2018 10:35:14 -0500 Subject: 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 --- .../recipes-phosphor/fans/phosphor-fan%/phosphor-cooling-type@.service | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor') 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 -- cgit v1.2.3