186a1ebf9SAndrew Geissler[Unit]
2*69a250ddSAndrew GeisslerDescription=Start Power Off for Chassis%i
386a1ebf9SAndrew GeisslerWants=obmc-power-stop@%i.target
486a1ebf9SAndrew GeisslerBefore=obmc-power-stop@%i.target
586a1ebf9SAndrew GeisslerWants=obmc-power-stop-pre@%i.target
686a1ebf9SAndrew GeisslerAfter=obmc-power-stop-pre@%i.target
786a1ebf9SAndrew GeisslerWants=mapper-wait@-org-openbmc-control-power%i.service
886a1ebf9SAndrew GeisslerAfter=mapper-wait@-org-openbmc-control-power%i.service
986a1ebf9SAndrew GeisslerConflicts=obmc-chassis-poweron@%i.target
1086a1ebf9SAndrew Geissler
1186a1ebf9SAndrew Geissler[Service]
1286a1ebf9SAndrew GeisslerRemainAfterExit=yes
1386a1ebf9SAndrew 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"
1486a1ebf9SAndrew GeisslerSyslogIdentifier=obmc-power-stop
1586a1ebf9SAndrew Geissler
1686a1ebf9SAndrew Geissler[Install]
17*69a250ddSAndrew GeisslerWantedBy=obmc-chassis-poweroff@%i.target
18