Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Reset host sensors |
Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 3 | Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service |
| 4 | After=mapper-wait@-xyz-openbmc_project-state-host%i.service |
Andrew Geissler | 0d1c3f1 | 2021-07-27 16:21:01 -0400 | [diff] [blame] | 5 | After=obmc-host-reset@%i.target |
Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 6 | ConditionPathExists=!/run/openbmc/host@%i-on |
| 7 | |
| 8 | [Service] |
| 9 | Restart=no |
| 10 | Type=oneshot |
Potin Lai | 106152c | 2022-04-12 14:51:34 +0800 | [diff] [blame] | 11 | ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/state/host%i` /xyz/openbmc_project/state/host%i 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/host%i` /xyz/openbmc_project/state/host%i xyz.openbmc_project.State.OperatingSystem.Status OperatingSystemState s xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive" |
| 13 | ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/state/host%i` /xyz/openbmc_project/state/host%i xyz.openbmc_project.State.Host RestartCause s xyz.openbmc_project.State.Host.RestartCause.Unknown" |
Andrew Geissler | 828f874 | 2021-12-03 14:15:22 -0600 | [diff] [blame] | 14 | |
Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 15 | |
| 16 | [Install] |
Andrew Geissler | 0d1c3f1 | 2021-07-27 16:21:01 -0400 | [diff] [blame] | 17 | WantedBy=multi-user.target |