blob: 8703a4301f233f40c8bd0f887aa2273ff4cafd66 [file] [log] [blame]
Brad Bishop3c90f592016-08-08 08:53:13 -04001[Unit]
2Description=Start Host%i
3After=obmc-host-start-pre@%i.target
Josh D. Kinga283e072017-04-06 15:56:37 -05004Wants=obmc-host-starting@%i.target
5Before=obmc-host-starting@%i.target
Brad Bishop3c90f592016-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. Kinga283e072017-04-06 15:56:37 -050011Conflicts=obmc-host-stop@%i.target
Andrew Geisslerde073152017-03-22 15:03:08 -050012ConditionPathExists=!/run/openbmc/host@%i-on
Brad Bishop3c90f592016-08-08 08:53:13 -040013
14[Service]
15Type=oneshot
16RemainAfterExit=yes
Brad Bishopec5ea3b2018-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 Bishop3c90f592016-08-08 08:53:13 -040019
20[Install]
Josh D. Kinga283e072017-04-06 15:56:37 -050021WantedBy=obmc-host-start@%i.target