diff options
author | George Hung <george.hung@quantatw.com> | 2021-06-21 14:24:40 +0300 |
---|---|---|
committer | George Hung <george.hung@quantatw.com> | 2021-06-22 12:07:19 +0300 |
commit | f5424ad3dc6b2146b561e83bab3a3eda859bc6b2 (patch) | |
tree | f75bdda26deda4f375b0dda3d98d0e6997ceb561 | |
parent | 73f3227b8128d0aa1a8e467e40c9fe1d6c414e90 (diff) | |
download | openbmc-f5424ad3dc6b2146b561e83bab3a3eda859bc6b2.tar.xz |
meta-quanta: gbs: update the service and remove unused script
- Add always restart to the service file
ref: https://gerrit.openbmc-project.xyz/42451
- Add retry 10 times when the service failed
- remove unused script
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: Ia3b027077d8cc9fae65013d38bf1ea730dbbbe42
2 files changed, 2 insertions, 15 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 bffb6d154..8e7153fe4 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 @@ -5,8 +5,10 @@ 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 +StartLimitBurst=10 [Service] +Restart=always ExecStart=/usr/bin/virtual-sensor Type=dbus BusName=xyz.openbmc_project.VirtualSensor diff --git a/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-virtual-sensor/setMaxMinValue.sh b/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-virtual-sensor/setMaxMinValue.sh deleted file mode 100644 index 604eafccc..000000000 --- a/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-virtual-sensor/setMaxMinValue.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -serviceName="xyz.openbmc_project.VirtualSensor" -interfaceName="xyz.openbmc_project.Sensor.Value" -objectPath="/xyz/openbmc_project/sensors/temperature/" - -# set MaxValue, MinValue to sensor dbus property -for i in {0..2}; do - sensorPath="${objectPath}i2cool_${i}" - mapper wait $sensorPath - busctl set-property $serviceName $sensorPath $interfaceName MaxValue d 127 - busctl set-property $serviceName $sensorPath $interfaceName MinValue d -- -128 -done - -exit 0 |