From 527fb966b7805fe41533477bc83339554ae45777 Mon Sep 17 00:00:00 2001 From: George Hung Date: Wed, 28 Apr 2021 17:03:42 +0800 Subject: meta-quanta: gbs: fix mapper wait quit immediately Using mapper wait to ExecStartPre would quit immdiately while the D-Bus path is not active yet, so change to add to "After=" to make sure it would wait until the D-Bus path work Signed-off-by: George Hung Change-Id: I86029f4eba6b34b5c313ec9cc1578ef173d5c2aa --- .../phosphor-virtual-sensor/phosphor-virtual-sensor.service.replace | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'meta-quanta') diff --git a/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-virtual-sensor/phosphor-virtual-sensor.service.replace b/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-virtual-sensor/phosphor-virtual-sensor.service.replace index eae38b23d2..ec8fd73f87 100644 --- a/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-virtual-sensor/phosphor-virtual-sensor.service.replace +++ b/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-virtual-sensor/phosphor-virtual-sensor.service.replace @@ -2,11 +2,11 @@ Description=Virtual sensors Wants=obmc-mapper.target After=obmc-mapper.target +After=mapper-wait@-xyz-openbmc_project-sensors-temperature-inlet.service +After=mapper-wait@-xyz-openbmc_project-sensors-temperature-outlet_0.service +After=mapper-wait@-xyz-openbmc_project-sensors-temperature-outlet_1.service [Service] -ExecStartPre=mapper wait /xyz/openbmc_project/sensors/temperature/inlet -ExecStartPre=mapper wait /xyz/openbmc_project/sensors/temperature/outlet_0 -ExecStartPre=mapper wait /xyz/openbmc_project/sensors/temperature/outlet_1 ExecStart=/usr/bin/virtual-sensor ExecStartPost=/usr/bin/setMaxMinValue.sh Type=dbus -- cgit v1.2.3