Brad Bishop | 7e164be | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Start Power%i |
| 3 | Wants=obmc-power-start@%i.target |
| 4 | Before=obmc-power-start@%i.target |
Andrew Geissler | af23694 | 2021-08-12 10:32:41 -0400 | [diff] [blame] | 5 | Wants=obmc-power-start-pre@%i.target |
Brad Bishop | 7e164be | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 6 | After=obmc-power-start-pre@%i.target |
| 7 | After=obmc-fan-control.target |
| 8 | Wants=mapper-wait@-org-openbmc-control-power%i.service |
| 9 | After=mapper-wait@-org-openbmc-control-power%i.service |
Josh D. King | b9ee536 | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 10 | Conflicts=obmc-chassis-poweroff@%i.target |
Andrew Geissler | b8c4770 | 2017-03-02 16:25:43 -0600 | [diff] [blame] | 11 | ConditionPathExists=!/run/openbmc/chassis@%i-on |
Brad Bishop | 7e164be | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 12 | |
| 13 | [Service] |
| 14 | RemainAfterExit=yes |
Andrew Geissler | 19c78e2 | 2017-02-09 15:04:03 -0600 | [diff] [blame] | 15 | Type=oneshot |
Brad Bishop | 859b92e | 2018-06-07 16:17:15 -0400 | [diff] [blame] | 16 | ExecStart=/bin/sh -c "busctl call `mapper get-service /org/openbmc/control/power%i` /org/openbmc/control/power%i org.openbmc.control.Power setPowerState i 1" |
| 17 | SyslogIdentifier=op-power-start |
Brad Bishop | 7e164be | 2016-08-08 08:53:13 -0400 | [diff] [blame] | 18 | |
| 19 | [Install] |
Josh D. King | efb04a1 | 2017-04-06 15:56:37 -0500 | [diff] [blame] | 20 | WantedBy=obmc-host-start@%i.target |