Brad Bishop | 7e164be | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Start Host%i |
| 3 | After=obmc-host-start-pre@%i.target |
Josh D. King | efb04a1 | 2017-04-06 15:56:37 -0500 | [diff] [blame] | 4 | Wants=obmc-host-starting@%i.target |
| 5 | Before=obmc-host-starting@%i.target |
Brad Bishop | 7e164be | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 6 | Before=obmc-host-started@%i.target |
| 7 | Wants=obmc-power-on@%i.target |
| 8 | After=obmc-power-on@%i.target |
| 9 | Wants=mapper-wait@-org-openbmc-control-host%i.service |
| 10 | After=mapper-wait@-org-openbmc-control-host%i.service |
Josh D. King | efb04a1 | 2017-04-06 15:56:37 -0500 | [diff] [blame] | 11 | Conflicts=obmc-host-stop@%i.target |
Andrew Geissler | d364014 | 2017-03-22 15:03:08 -0500 | [diff] [blame] | 12 | ConditionPathExists=!/run/openbmc/host@%i-on |
Brad Bishop | 7e164be | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 13 | |
| 14 | [Service] |
| 15 | Type=oneshot |
| 16 | RemainAfterExit=yes |
Brad Bishop | 859b92e | 2018-06-07 16:17:15 -0400 | [diff] [blame] | 17 | ExecStart=/bin/sh -c "busctl call `mapper get-service /org/openbmc/control/host%i` /org/openbmc/control/host%i org.openbmc.control.Host boot" |
| 18 | SyslogIdentifier=op-start-host |
Brad Bishop | 7e164be | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 19 | |
| 20 | [Install] |
Josh D. King | efb04a1 | 2017-04-06 15:56:37 -0500 | [diff] [blame] | 21 | WantedBy=obmc-host-start@%i.target |