blob: 5d04020141ac335712b6b057f0e60715c3b66eae [file] [log] [blame]
[Unit]
Description=Set Chassis state to transition to off
Before=obmc-power-stop@%i.service
Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
Conflicts=obmc-chassis-poweron@%i.target
[Service]
Restart=no
Type=oneshot
SyslogIdentifier=phosphor-set-chassis-transition-to-off
ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/state/chassis%i` /xyz/openbmc_project/state/chassis%i xyz.openbmc_project.State.Chassis CurrentPowerState s xyz.openbmc_project.State.Chassis.PowerState.TransitioningToOff"
[Install]
WantedBy=obmc-chassis-poweroff@%i.target