From a82e2981b7cee2c0e032531fab0b4f5f80c60370 Mon Sep 17 00:00:00 2001 From: Lei YU Date: Fri, 24 May 2019 13:44:01 +0800 Subject: meta-romulus: Set RemainAfterExit for phosphor-cooling-type service The service phosphor-cooling-type is required by multi-user.target and thus will be started by default. In case multi-user.target is started for multiple times, this service will be startd for multiple times as well, and eventually get start-limit-hit failure. This commit adds RemainAfterExit=true so the service will be treated as started and thus will not be started for multiple times. Resolves openbmc/openbmc#3544 Tested: Reboot Romulus BMC when the host is on, and verify the BMC gets READY state after reboot. (From meta-ibm rev: fdd8f7bb1cca6b505d6b92c741d04a9c6bbfafa7) Change-Id: Ie3817296265c860d770333c59b591da9d083139c Signed-off-by: Lei YU Signed-off-by: Brad Bishop --- .../recipes-phosphor/fans/phosphor-fan/phosphor-cooling-type@.service | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta-ibm/meta-romulus') diff --git a/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan/phosphor-cooling-type@.service b/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan/phosphor-cooling-type@.service index e72d33af9..9232b13fc 100644 --- a/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan/phosphor-cooling-type@.service +++ b/meta-ibm/meta-romulus/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}} SyslogIdentifier=phosphor-cooling-type -- cgit v1.2.3