Andrew Geissler | 1e8b164 | 2021-01-05 15:00:25 -0600 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Set host state to transition to off |
| 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-stop-pre@%i.target |
| 6 | Before=obmc-host-stop-pre@%i.target |
Andrew Geissler | 3ac78df | 2021-06-03 16:00:58 -0500 | [diff] [blame] | 7 | Conflicts=obmc-host-startmin@%i.target |
Andrew Geissler | 1e8b164 | 2021-01-05 15:00:25 -0600 | [diff] [blame] | 8 | |
| 9 | [Service] |
| 10 | Restart=no |
| 11 | Type=oneshot |
Andrew Geissler | 3ac78df | 2021-06-03 16:00:58 -0500 | [diff] [blame] | 12 | RemainAfterExit=yes |
Andrew Geissler | 1e8b164 | 2021-01-05 15:00:25 -0600 | [diff] [blame] | 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 CurrentHostState s xyz.openbmc_project.State.Host.HostState.TransitioningToOff" |
| 14 | |
| 15 | [Install] |
| 16 | WantedBy=obmc-host-stop@%i.target |