blob: ede20ac04069dd9180bfd68f3843f6ebfec6121e [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
Kuiying Wang6ce6ab42019-01-29 11:10:13 +080010ExecStart=/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 Wangc8153bc2018-11-09 16:34:33 +080012SyslogIdentifier=intel-power-warm-reset
13
14[Install]
15WantedBy=obmc-host-warm-reset@%i.target