Kuiying Wang | c8153bc | 2018-11-09 16:34:33 +0800 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Start Power%i on |
| 3 | Wants=mapper-wait@-xyz-openbmc_project-Chassis-Control-Power%i.service |
| 4 | After=mapper-wait@-xyz-openbmc_project-Chassis-Control-Power%i.service |
| 5 | Conflicts=obmc-chassis-poweroff@%i.target |
| 6 | ConditionPathExists=!/run/openbmc/chassis@%i-on |
| 7 | |
| 8 | [Service] |
| 9 | Type=oneshot |
Kuiying Wang | 6ce6ab4 | 2019-01-29 11:10:13 +0800 | [diff] [blame^] | 10 | ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/Chassis/Control/Power%i` \ |
| 11 | /xyz/openbmc_project/Chassis/Control/Power%i xyz.openbmc_project.Chassis.Control.Power State i 1" |
Kuiying Wang | c8153bc | 2018-11-09 16:34:33 +0800 | [diff] [blame] | 12 | SyslogIdentifier=intel-power-start |
| 13 | StartLimitInterval=0 |
| 14 | |
| 15 | [Install] |
| 16 | WantedBy=obmc-host-start@%i.target |