blob: 40dbf36377367d0d5a41260c106c2b799af9029a [file] [log] [blame]
Brad Bishop7e164be2016-08-08 08:53:13 -04001[Unit]
2Description=Stop Power%i
3Wants=obmc-power-stop@%i.target
4Before=obmc-power-stop@%i.target
Andrew Geissler5208dbd2017-05-26 17:40:03 -05005Wants=obmc-power-stop-pre@%i.target
Brad Bishop7e164be2016-08-08 08:53:13 -04006After=obmc-power-stop-pre@%i.target
7Wants=mapper-wait@-org-openbmc-control-power%i.service
8After=mapper-wait@-org-openbmc-control-power%i.service
Josh D. Kingb9ee5362017-04-06 14:43:46 -05009Conflicts=obmc-chassis-poweron@%i.target
Brad Bishop7e164be2016-08-08 08:53:13 -040010
11[Service]
12RemainAfterExit=yes
Brad Bishop859b92e2018-06-07 16:17:15 -040013ExecStart=/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=op-power-stop
Brad Bishop7e164be2016-08-08 08:53:13 -040015
16[Install]
Josh D. Kingefb04a12017-04-06 15:56:37 -050017WantedBy=obmc-host-stop@%i.target