1[Unit]
2Description=Set host state to transition to running
3Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service
4After=mapper-wait@-xyz-openbmc_project-state-host%i.service
5Wants=obmc-host-start-pre@%i.target
6Before=obmc-host-start-pre@%i.target
7Conflicts=obmc-host-stop@%i.target
8ConditionPathExists=!/run/openbmc/host@%i-on
9
10[Service]
11Restart=no
12Type=oneshot
13RemainAfterExit=yes
14ExecStart=/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]
17WantedBy=obmc-host-startmin@%i.target
18