blob: f370a3cd91306eaeb211c9720b4c4f1781c66be9 [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
8Conflicts=obmc-chassis-start@%i.target
9
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