blob: 9120a87bdff510c650cb691ddfab418359f2752a [file] [log] [blame]
Brad Bishop3c90f592016-08-08 08:53:13 -04001[Unit]
2Description=Stop Power%i
3Wants=obmc-power-stop@%i.target
4Before=obmc-power-stop@%i.target
5After=obmc-power-stop-pre@%i.target
6Wants=mapper-wait@-org-openbmc-control-power%i.service
7After=mapper-wait@-org-openbmc-control-power%i.service
Andrew Geisslerfb7fa822017-01-26 08:07:15 -06008Conflicts=obmc-power-chassis-on@%i.target
Brad Bishop3c90f592016-08-08 08:53:13 -04009
10[Service]
11RemainAfterExit=yes
12ExecStart={sbindir}/mapper call /org/openbmc/control/power%i org.openbmc.control.Power setPowerState i 0
13
14[Install]
15WantedBy=obmc-chassis-stop@%i.target