diff options
author | George Hung <george.hung@quantatw.com> | 2021-04-28 12:03:42 +0300 |
---|---|---|
committer | George Hung <george.hung@quantatw.com> | 2021-04-29 02:34:35 +0300 |
commit | 527fb966b7805fe41533477bc83339554ae45777 (patch) | |
tree | e38583c60b0853c0839c42ddfb6b63971e9fd90e | |
parent | 7f52f354af516cda676c8ab4a1801cd19595533f (diff) | |
download | openbmc-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
-rw-r--r-- | meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-virtual-sensor/phosphor-virtual-sensor.service.replace | 6 |
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 |