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
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 bffb6d1..8e7153f 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=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 604eafc..0000000
--- 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