blob: 69565a319e998db94dedbbd99ea514130fcec647 [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
7ConditionPathExists=!/run/openbmc/host@%i-on
8
9[Service]
10Restart=no
11Type=oneshot
12ExecStart=/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"
13
14[Install]
15WantedBy=obmc-host-startmin@%i.target