Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Reset host sensors |
| 3 | After=phosphor-reset-host-check@%i.service |
| 4 | Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service |
| 5 | After=mapper-wait@-xyz-openbmc_project-state-host%i.service |
| 6 | ConditionPathExists=!/run/openbmc/host@%i-on |
| 7 | |
| 8 | [Service] |
| 9 | Restart=no |
| 10 | Type=oneshot |
| 11 | ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/state/host0` /xyz/openbmc_project/state/host0 xyz.openbmc_project.State.Boot.Progress BootProgress s xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified" |
| 12 | ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/state/host0` /xyz/openbmc_project/state/host0 xyz.openbmc_project.State.OperatingSystem.Status OperatingSystemState s xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive" |
| 13 | |
| 14 | [Install] |
| 15 | WantedBy=obmc-host-reset@%i.target |