1*86a1ebf9SAndrew Geissler[Unit]
2*86a1ebf9SAndrew GeisslerDescription=Stop Power%i
3*86a1ebf9SAndrew GeisslerWants=obmc-power-stop@%i.target
4*86a1ebf9SAndrew GeisslerBefore=obmc-power-stop@%i.target
5*86a1ebf9SAndrew GeisslerWants=obmc-power-stop-pre@%i.target
6*86a1ebf9SAndrew GeisslerAfter=obmc-power-stop-pre@%i.target
7*86a1ebf9SAndrew GeisslerWants=mapper-wait@-org-openbmc-control-power%i.service
8*86a1ebf9SAndrew GeisslerAfter=mapper-wait@-org-openbmc-control-power%i.service
9*86a1ebf9SAndrew GeisslerConflicts=obmc-chassis-poweron@%i.target
10*86a1ebf9SAndrew Geissler
11*86a1ebf9SAndrew Geissler[Service]
12*86a1ebf9SAndrew GeisslerRemainAfterExit=yes
13*86a1ebf9SAndrew GeisslerExecStart=/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"
14*86a1ebf9SAndrew GeisslerSyslogIdentifier=obmc-power-stop
15*86a1ebf9SAndrew Geissler
16*86a1ebf9SAndrew Geissler[Install]
17*86a1ebf9SAndrew GeisslerWantedBy=obmc-host-stop@%i.target
18