xref: /openbmc/phosphor-state-manager/service_files/phosphor-set-host-transition-to-off@.service (revision 1e8b164f7b575f9728dd7f46d7b2d27e6081ee3f)
1*1e8b164fSAndrew Geissler[Unit]
2*1e8b164fSAndrew GeisslerDescription=Set host state to transition to off
3*1e8b164fSAndrew GeisslerWants=mapper-wait@-xyz-openbmc_project-state-host%i.service
4*1e8b164fSAndrew GeisslerAfter=mapper-wait@-xyz-openbmc_project-state-host%i.service
5*1e8b164fSAndrew GeisslerWants=obmc-host-stop-pre@%i.target
6*1e8b164fSAndrew GeisslerBefore=obmc-host-stop-pre@%i.target
7*1e8b164fSAndrew Geissler
8*1e8b164fSAndrew Geissler[Service]
9*1e8b164fSAndrew GeisslerRestart=no
10*1e8b164fSAndrew GeisslerType=oneshot
11*1e8b164fSAndrew 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.TransitioningToOff"
12*1e8b164fSAndrew Geissler
13*1e8b164fSAndrew Geissler[Install]
14*1e8b164fSAndrew GeisslerWantedBy=obmc-host-stop@%i.target
15