diff options
author | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-08-03 13:43:54 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-08-07 15:20:30 +0000 |
commit | bfa5f4fdbf116ff50d548d21b0462e932b76b51d (patch) | |
tree | 500cf326852fd98c5b35de4eedc28ba61641c039 /meta-phosphor | |
parent | 604b41d777d41ff7d90d641af06060f376727299 (diff) | |
download | talos-openbmc-bfa5f4fdbf116ff50d548d21b0462e932b76b51d.tar.gz talos-openbmc-bfa5f4fdbf116ff50d548d21b0462e932b76b51d.zip |
host-failure-reboot: use new AutoReboot setting
Change-Id: Ie35532b997b7812736519a2e385fc74d32fd6230
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'meta-phosphor')
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/chassis/obmc-host-failure-reboots/host-failure-reboots@.service | 8 |
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 67a9aff23..88769c77a 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 |