Files
OpenBMC/meta-yadro/meta-vegman/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-cycle.service
T
2026-04-23 17:07:55 +08:00

22 lines
780 B
Desktop File

[Unit]
Description=Power Cycle Host Server
After=xyz.openbmc_project.Chassis.Power.service
[Service]
ExecStart=/usr/bin/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=/usr/bin/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
Type=oneshot
SyslogIdentifier=phosphor-watchdog