blob: 86ddf4a3204bab40b1f010e38e96ece6517f719d [file] [log] [blame]
[Unit]
Description=Stop Power%i
Wants=obmc-power-stop@%i.target
Before=obmc-power-stop@%i.target
After=obmc-power-stop-pre@%i.target
Wants=mapper-wait@-org-openbmc-control-power%i.service
After=mapper-wait@-org-openbmc-control-power%i.service
Conflicts=obmc-chassis-poweron@%i.target
[Service]
RemainAfterExit=yes
ExecStart={sbindir}/mapper call /org/openbmc/control/power%i org.openbmc.control.Power setPowerState i 0
[Install]
WantedBy=obmc-chassis-stop@%i.target