Andrei Kartashev | 4d07323 | 2021-12-15 15:34:44 +0300 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Reset Host Server |
| 3 | After=xyz.openbmc_project.Chassis.Power.service |
| 4 | |
| 5 | [Service] |
| 6 | ExecStart=/usr/bin/busctl set-property \ |
| 7 | xyz.openbmc_project.State.Host \ |
| 8 | /xyz/openbmc_project/state/host0 \ |
| 9 | xyz.openbmc_project.State.Host \ |
| 10 | RequestedHostTransition s \ |
| 11 | xyz.openbmc_project.State.Host.Transition.ForceWarmReboot |
| 12 | |
| 13 | ExecStart=/usr/bin/busctl set-property \ |
| 14 | xyz.openbmc_project.Control.Host.RestartCause \ |
| 15 | /xyz/openbmc_project/control/host0/restart_cause \ |
| 16 | xyz.openbmc_project.Control.Host.RestartCause \ |
| 17 | RequestedRestartCause s \ |
| 18 | xyz.openbmc_project.State.Host.RestartCause.WatchdogTimer |
| 19 | |
| 20 | Type=oneshot |
| 21 | SyslogIdentifier=phosphor-watchdog |