11e8b164fSAndrew Geissler[Unit]
21e8b164fSAndrew GeisslerDescription=Set host state to transition to running
31e8b164fSAndrew GeisslerWants=mapper-wait@-xyz-openbmc_project-state-host%i.service
41e8b164fSAndrew GeisslerAfter=mapper-wait@-xyz-openbmc_project-state-host%i.service
51e8b164fSAndrew GeisslerWants=obmc-host-start-pre@%i.target
61e8b164fSAndrew GeisslerBefore=obmc-host-start-pre@%i.target
7*3ac78dfdSAndrew GeisslerConflicts=obmc-host-stop@%i.target
81e8b164fSAndrew GeisslerConditionPathExists=!/run/openbmc/host@%i-on
91e8b164fSAndrew Geissler
101e8b164fSAndrew Geissler[Service]
111e8b164fSAndrew GeisslerRestart=no
121e8b164fSAndrew GeisslerType=oneshot
13*3ac78dfdSAndrew GeisslerRemainAfterExit=yes
141e8b164fSAndrew GeisslerExecStart=/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"
151e8b164fSAndrew Geissler
161e8b164fSAndrew Geissler[Install]
171e8b164fSAndrew GeisslerWantedBy=obmc-host-startmin@%i.target
18