blob: c8bd4fc01c73573402812329c1fa74cc1f5b9637 [file] [log] [blame]
Kuiying Wangc8153bc2018-11-09 16:34:33 +08001[Unit]
2Description=Power%i warm reset
3Wants=mapper-wait@-xyz-openbmc_project-Chassis-Control-Power%i.service
4After=mapper-wait@-xyz-openbmc_project-Chassis-Control-Power%i.service
5Conflicts=obmc-chassis-poweroff@%i.target
6ConditionPathExists=!/run/openbmc/chassis@%i-on
7
8[Service]
9Type=oneshot
10ExecStart=/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"
12SyslogIdentifier=intel-power-warm-reset
13
14[Install]
15WantedBy=obmc-host-warm-reset@%i.target