summaryrefslogtreecommitdiff
path: root/meta-quanta
diff options
context:
space:
mode:
authorGeorge Hung <george.hung@quantatw.com>2021-04-28 12:03:42 +0300
committerGeorge Hung <george.hung@quantatw.com>2021-04-29 02:34:35 +0300
commit527fb966b7805fe41533477bc83339554ae45777 (patch)
treee38583c60b0853c0839c42ddfb6b63971e9fd90e /meta-quanta
parent7f52f354af516cda676c8ab4a1801cd19595533f (diff)
downloadopenbmc-527fb966b7805fe41533477bc83339554ae45777.tar.xz
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 <george.hung@quantatw.com> Change-Id: I86029f4eba6b34b5c313ec9cc1578ef173d5c2aa
Diffstat (limited to 'meta-quanta')
-rw-r--r--meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-virtual-sensor/phosphor-virtual-sensor.service.replace6
1 files changed, 3 insertions, 3 deletions
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 eae38b23d..ec8fd73f8 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