diff options
author | Vijay Khemka <vijaykhemka@fb.com> | 2019-12-27 02:29:35 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2020-01-06 17:22:22 +0300 |
commit | 23a91f552abe48ee70e344debd8a7579844ff61a (patch) | |
tree | c087afd1a0615e55bace24df7ca4939cc0225e72 /meta-facebook | |
parent | ef43ca2826a29b2f707bc0e0d5cd0e5341e4b89a (diff) | |
download | openbmc-23a91f552abe48ee70e344debd8a7579844ff61a.tar.xz |
meta-facebook: watchdog: fix host cycle
There was a issue in power cycle command as poweron was sent
immediately after poweroff where as power status didn't change
so poweron command was ignored. So adding sleep of 6 sec before
sending poweron.
(From meta-facebook rev: 83af1046a8719f6ad44f80a2cce4f8b0dc9565f7)
Change-Id: I8907643578983b8b3851523c780bc59e5528baac
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-facebook')
-rw-r--r-- | meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-cycle.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-cycle.service b/meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-cycle.service index d0580bb54..d7fc724cf 100644 --- a/meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-cycle.service +++ b/meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-cycle.service @@ -6,5 +6,6 @@ After=host-gpio.service [Service] Type=oneshot ExecStart=busctl set-property xyz.openbmc_project.State.Chassis /xyz/openbmc_project/state/chassis0 xyz.openbmc_project.State.Chassis RequestedPowerTransition s xyz.openbmc_project.State.Chassis.Transition.Off +ExecStart=sleep 6 ExecStart=busctl set-property xyz.openbmc_project.State.Chassis /xyz/openbmc_project/state/chassis0 xyz.openbmc_project.State.Chassis RequestedPowerTransition s xyz.openbmc_project.State.Chassis.Transition.On SyslogIdentifier=phosphor-watchdog |