summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-phosphor/chassis
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2017-08-03 21:43:54 +0300
committerPatrick Williams <patrick@stwcx.xyz>2017-08-07 18:20:30 +0300
commitbfa5f4fdbf116ff50d548d21b0462e932b76b51d (patch)
tree500cf326852fd98c5b35de4eedc28ba61641c039 /meta-phosphor/common/recipes-phosphor/chassis
parent604b41d777d41ff7d90d641af06060f376727299 (diff)
downloadopenbmc-bfa5f4fdbf116ff50d548d21b0462e932b76b51d.tar.xz
host-failure-reboot: use new AutoReboot setting
Change-Id: Ie35532b997b7812736519a2e385fc74d32fd6230 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/chassis')
-rw-r--r--meta-phosphor/common/recipes-phosphor/chassis/obmc-host-failure-reboots/host-failure-reboots@.service8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/chassis/obmc-host-failure-reboots/host-failure-reboots@.service b/meta-phosphor/common/recipes-phosphor/chassis/obmc-host-failure-reboots/host-failure-reboots@.service
index 67a9aff23d..88769c77ae 100644
--- a/meta-phosphor/common/recipes-phosphor/chassis/obmc-host-failure-reboots/host-failure-reboots@.service
+++ b/meta-phosphor/common/recipes-phosphor/chassis/obmc-host-failure-reboots/host-failure-reboots@.service
@@ -1,11 +1,11 @@
[Unit]
Description=Enable reboot on host failures
-Wants=mapper-wait@-org-openbmc-settings-host%i.service
-After=mapper-wait@-org-openbmc-settings-host%i.service
+Wants=mapper-wait@-xyz-openbmc_project-control-host0-auto_reboot.service
+After=mapper-wait@-xyz-openbmc_project-control-host0-auto_reboot.service
[Service]
-ExecStart = /bin/sh -c "busctl set-property `mapper get-service /org/openbmc/settings/host%i` /org/openbmc/settings/host%i org.openbmc.settings.Host auto_reboot s \"yes\""
-ExecStop = /bin/sh -c "busctl set-property `mapper get-service /org/openbmc/settings/host%i` /org/openbmc/settings/host%i org.openbmc.settings.Host auto_reboot s \"no\""
+ExecStart = /bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/control/host0/auto_reboot` /xyz/openbmc_project/control/host0/auto_reboot xyz.openbmc_project.Control.Boot.RebootPolicy AutoReboot b true"
+ExecStop = /bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/control/host0/auto_reboot` /xyz/openbmc_project/control/host0/auto_reboot xyz.openbmc_project.Control.Boot.RebootPolicy AutoReboot b false"
Type=oneshot
RemainAfterExit=yes