Brad Bishop | 3c90f59 | 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 | a283e07 | 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 | 3c90f59 | 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 | a283e07 | 2017-04-06 15:56:37 -0500 | [diff] [blame] | 11 | Conflicts=obmc-host-stop@%i.target |
Andrew Geissler | de07315 | 2017-03-22 15:03:08 -0500 | [diff] [blame] | 12 | ConditionPathExists=!/run/openbmc/host@%i-on |
Brad Bishop | 3c90f59 | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 13 | |
| 14 | [Service] |
| 15 | Type=oneshot |
| 16 | RemainAfterExit=yes |
Brad Bishop | ec5ea3b | 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 | 3c90f59 | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 19 | |
| 20 | [Install] |
Josh D. King | a283e07 | 2017-04-06 15:56:37 -0500 | [diff] [blame] | 21 | WantedBy=obmc-host-start@%i.target |