diff options
author | George Hung <george.hung@quantatw.com> | 2021-04-29 05:48:55 +0300 |
---|---|---|
committer | George Hung <george.hung@quantatw.com> | 2021-04-29 08:28:00 +0300 |
commit | c4d7953f9ccb03549bbd7af2cd2fa755c0aaaf59 (patch) | |
tree | b0aad9b2e528e8fe3b5cb7a0017f9487d3fe42ad /meta-quanta/meta-gbs/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-host-watchdog-powercycle.service | |
parent | b4af56f7f44ff7e2f565c548aa65489f151d36f2 (diff) | |
download | openbmc-c4d7953f9ccb03549bbd7af2cd2fa755c0aaaf59.tar.xz |
meta-quanta: gbs: use service files instead of setting D-bus properties
Use service files instead of setting D-bus properties for power
control and remove unused patches
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: I6f80979906e87b77b36a6e333456d4e5c42249ce
Diffstat (limited to 'meta-quanta/meta-gbs/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-host-watchdog-powercycle.service')
-rw-r--r-- | meta-quanta/meta-gbs/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-host-watchdog-powercycle.service | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-quanta/meta-gbs/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-host-watchdog-powercycle.service b/meta-quanta/meta-gbs/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-host-watchdog-powercycle.service new file mode 100644 index 000000000..9b8b0d691 --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-host-watchdog-powercycle.service @@ -0,0 +1,9 @@ +[Unit] +Description=Power Cycle Host Server +After=xyz.openbmc_project.Chassis.Control.Power.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.PowerCycle +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 |