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 |
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 2" |
Kuiying Wang | c8153bc | 2018-11-09 16:34:33 +0800 | [diff] [blame] | 12 | SyslogIdentifier=intel-power-warm-reset |
| 13 | |
| 14 | [Install] |
| 15 | WantedBy=obmc-host-warm-reset@%i.target |