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 |
| 7 | ConditionPathExists=!/run/openbmc/host@%i-on |
| 8 | |
| 9 | [Service] |
| 10 | Restart=no |
| 11 | Type=oneshot |
| 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.Host CurrentHostState s xyz.openbmc_project.State.Host.HostState.TransitioningToRunning" |
| 13 | |
| 14 | [Install] |
| 15 | WantedBy=obmc-host-startmin@%i.target |