| [Unit] |
| Description=Power%i warm reset |
| Wants=mapper-wait@-xyz-openbmc_project-Chassis-Control-Power%i.service |
| After=mapper-wait@-xyz-openbmc_project-Chassis-Control-Power%i.service |
| Conflicts=obmc-chassis-poweroff@%i.target |
| ConditionPathExists=!/run/openbmc/chassis@%i-on |
| |
| [Service] |
| Type=oneshot |
| ExecStart=/bin/sh -c "busctl call `mapper get-service /xyz/openbmc_project/Chassis/Control/Power%i` \ |
| /xyz/openbmc_project/Chassis/Control/Power%i xyz.openbmc_project.Chassis.Control.Power setPowerState i 2" |
| SyslogIdentifier=intel-power-warm-reset |
| |
| [Install] |
| WantedBy=obmc-host-warm-reset@%i.target |