blob: 8703a4301f233f40c8bd0f887aa2273ff4cafd66 [file] [log] [blame]
Brad Bishop7e164be2016-08-08 08:53:13 -04001[Unit]
2Description=Start Host%i
3After=obmc-host-start-pre@%i.target
Josh D. Kingefb04a12017-04-06 15:56:37 -05004Wants=obmc-host-starting@%i.target
5Before=obmc-host-starting@%i.target
Brad Bishop7e164be2016-08-08 08:53:13 -04006Before=obmc-host-started@%i.target
7Wants=obmc-power-on@%i.target
8After=obmc-power-on@%i.target
9Wants=mapper-wait@-org-openbmc-control-host%i.service
10After=mapper-wait@-org-openbmc-control-host%i.service
Josh D. Kingefb04a12017-04-06 15:56:37 -050011Conflicts=obmc-host-stop@%i.target
Andrew Geisslerd3640142017-03-22 15:03:08 -050012ConditionPathExists=!/run/openbmc/host@%i-on
Brad Bishop7e164be2016-08-08 08:53:13 -040013
14[Service]
15Type=oneshot
16RemainAfterExit=yes
Brad Bishop859b92e2018-06-07 16:17:15 -040017ExecStart=/bin/sh -c "busctl call `mapper get-service /org/openbmc/control/host%i` /org/openbmc/control/host%i org.openbmc.control.Host boot"
18SyslogIdentifier=op-start-host
Brad Bishop7e164be2016-08-08 08:53:13 -040019
20[Install]
Josh D. Kingefb04a12017-04-06 15:56:37 -050021WantedBy=obmc-host-start@%i.target