Kuiying Wang | c8153bc | 2018-11-09 16:34:33 +0800 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Power%i warm reset |
| 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 |
| 10 | ExecStart=/bin/sh -c "busctl call `mapper get-service /xyz/openbmc_project/Chassis/Control/Power%i` \ |
| 11 | /xyz/openbmc_project/Chassis/Control/Power%i xyz.openbmc_project.Chassis.Control.Power setPowerState i 2" |
| 12 | SyslogIdentifier=intel-power-warm-reset |
| 13 | |
| 14 | [Install] |
| 15 | WantedBy=obmc-host-warm-reset@%i.target |