summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/recipes-phosphor/chassis/obmc-op-control-power/op-power-stop@.service
blob: 40dbf36377367d0d5a41260c106c2b799af9029a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=Stop Power%i
Wants=obmc-power-stop@%i.target
Before=obmc-power-stop@%i.target
Wants=obmc-power-stop-pre@%i.target
After=obmc-power-stop-pre@%i.target
Wants=mapper-wait@-org-openbmc-control-power%i.service
After=mapper-wait@-org-openbmc-control-power%i.service
Conflicts=obmc-chassis-poweron@%i.target

[Service]
RemainAfterExit=yes
ExecStart=/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"
SyslogIdentifier=op-power-stop

[Install]
WantedBy=obmc-host-stop@%i.target
OpenPOWER on IntegriCloud