1[Unit]
2Description=Stop Power%i
3Wants=obmc-power-stop@%i.target
4Before=obmc-power-stop@%i.target
5Wants=obmc-power-stop-pre@%i.target
6After=obmc-power-stop-pre@%i.target
7Wants=mapper-wait@-org-openbmc-control-power%i.service
8After=mapper-wait@-org-openbmc-control-power%i.service
9Conflicts=obmc-chassis-poweron@%i.target
10
11[Service]
12RemainAfterExit=yes
13ExecStart=/bin/sh -c "busctl call `mapper get-service /org/openbmc/control/power%i` /org/openbmc/control/power%i org.openbmc.control.Power setPowerState i 0"
14SyslogIdentifier=obmc-power-stop
15
16[Install]
17WantedBy=obmc-host-stop@%i.target
18