xref: /openbmc/phosphor-state-manager/service_files/phosphor-set-host-transition-to-off@.service (revision 3ac78dfd6e3c6bf1c673e6acc8e6dc2deb6bd98b)
11e8b164fSAndrew Geissler[Unit]
21e8b164fSAndrew GeisslerDescription=Set host state to transition to off
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-stop-pre@%i.target
61e8b164fSAndrew GeisslerBefore=obmc-host-stop-pre@%i.target
7*3ac78dfdSAndrew GeisslerConflicts=obmc-host-startmin@%i.target
81e8b164fSAndrew Geissler
91e8b164fSAndrew Geissler[Service]
101e8b164fSAndrew GeisslerRestart=no
111e8b164fSAndrew GeisslerType=oneshot
12*3ac78dfdSAndrew GeisslerRemainAfterExit=yes
131e8b164fSAndrew 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"
141e8b164fSAndrew Geissler
151e8b164fSAndrew Geissler[Install]
161e8b164fSAndrew GeisslerWantedBy=obmc-host-stop@%i.target
17