blob: 1c9fa2166629e1d688ab64b2b61b59ed9331e988 [file] [log] [blame]
Andrew Geissler1e8b1642021-01-05 15:00:25 -06001[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
Andrew Geissler3ac78df2021-06-03 16:00:58 -05007Conflicts=obmc-host-stop@%i.target
Andrew Geissler1e8b1642021-01-05 15:00:25 -06008ConditionPathExists=!/run/openbmc/host@%i-on
9
10[Service]
11Restart=no
12Type=oneshot
Andrew Geissler3ac78df2021-06-03 16:00:58 -050013RemainAfterExit=yes
Andrew Geissler1e8b1642021-01-05 15:00:25 -060014ExecStart=/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