blob: 40dbf36377367d0d5a41260c106c2b799af9029a [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
Andrew Geissler191400b2017-05-26 17:40:03 -05005Wants=obmc-power-stop-pre@%i.target
Brad Bishop3c90f592016-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. Kingb57615e2017-04-06 14:43:46 -05009Conflicts=obmc-chassis-poweron@%i.target
Brad Bishop3c90f592016-08-08 08:53:13 -040010
11[Service]
12RemainAfterExit=yes
Brad Bishopec5ea3b2018-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 Bishop3c90f592016-08-08 08:53:13 -040015
16[Install]
Josh D. Kinga283e072017-04-06 15:56:37 -050017WantedBy=obmc-host-stop@%i.target