blob: 69565a319e998db94dedbbd99ea514130fcec647 [file] [log] [blame]
[Unit]
Description=Set host state to transition to running
Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service
After=mapper-wait@-xyz-openbmc_project-state-host%i.service
Wants=obmc-host-start-pre@%i.target
Before=obmc-host-start-pre@%i.target
ConditionPathExists=!/run/openbmc/host@%i-on
[Service]
Restart=no
Type=oneshot
ExecStart=/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"
[Install]
WantedBy=obmc-host-startmin@%i.target