Andrew Geissler | 1e8b164 | 2021-01-05 15:00:25 -0600 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Set host state to transition to running |
| 3 | Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service |
| 4 | After=mapper-wait@-xyz-openbmc_project-state-host%i.service |
| 5 | Wants=obmc-host-start-pre@%i.target |
| 6 | Before=obmc-host-start-pre@%i.target |
Andrew Geissler | 3ac78df | 2021-06-03 16:00:58 -0500 | [diff] [blame] | 7 | Conflicts=obmc-host-stop@%i.target |
Andrew Geissler | 1e8b164 | 2021-01-05 15:00:25 -0600 | [diff] [blame] | 8 | ConditionPathExists=!/run/openbmc/host@%i-on |
| 9 | |
| 10 | [Service] |
| 11 | Restart=no |
| 12 | Type=oneshot |
Andrew Geissler | 3ac78df | 2021-06-03 16:00:58 -0500 | [diff] [blame] | 13 | RemainAfterExit=yes |
Andrew Geissler | 1e8b164 | 2021-01-05 15:00:25 -0600 | [diff] [blame] | 14 | 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 CurrentHostState s xyz.openbmc_project.State.Host.HostState.TransitioningToRunning" |
| 15 | |
| 16 | [Install] |
| 17 | WantedBy=obmc-host-startmin@%i.target |