From 74c6f2f8b1d2905c1669074382f62c5b5300517a Mon Sep 17 00:00:00 2001 From: Vijay Khemka Date: Thu, 26 Dec 2019 15:35:41 -0800 Subject: meta-facebook: watchdog: Add restart cause command Added restart cause command after taking watchdog action. This will update dbus status for restart cause of host. (From meta-facebook rev: 6a85046dcc41024e52ffe4a5a8678548c54ee38b) Change-Id: I057a441a26310f80837a8fe742b669b69cf3d26e Signed-off-by: Vijay Khemka Signed-off-by: Brad Bishop --- .../watchdog/phosphor-watchdog/phosphor-watchdog-host-cycle.service | 1 + .../watchdog/phosphor-watchdog/phosphor-watchdog-host-reset.service | 1 + 2 files changed, 2 insertions(+) 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 d7fc724cf..3a22e56b9 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,6 +6,7 @@ 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=busctl set-property xyz.openbmc_project.Control.Host.RestartCause /xyz/openbmc_project/control/host0/restart_cause xyz.openbmc_project.Control.Host.RestartCause RequestedRestartCause s xyz.openbmc_project.State.Host.RestartCause.WatchdogTimer 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 diff --git a/meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-reset.service b/meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-reset.service index f00c9e8ab..f0f03a1cc 100644 --- a/meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-reset.service +++ b/meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-reset.service @@ -6,4 +6,5 @@ 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.Reset +ExecStart=busctl set-property xyz.openbmc_project.Control.Host.RestartCause /xyz/openbmc_project/control/host0/restart_cause xyz.openbmc_project.Control.Host.RestartCause RequestedRestartCause s xyz.openbmc_project.State.Host.RestartCause.WatchdogTimer SyslogIdentifier=phosphor-watchdog -- cgit v1.2.3