blob: dd3570e0112e22fdfe094525980df0cea48bb4ca [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
Josh D. Kingb57615e2017-04-06 14:43:46 -05008Conflicts=obmc-chassis-poweron@%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]
Josh D. Kinga283e072017-04-06 15:56:37 -050015WantedBy=obmc-host-stop@%i.target