1[Unit]
2Description=Set Chassis state to transition to off
3Before=obmc-power-stop@%i.service
4Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
5After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
6Conflicts=obmc-chassis-poweron@%i.target
7
8[Service]
9Restart=no
10Type=oneshot
11RemainAfterExit=yes
12SyslogIdentifier=phosphor-set-chassis-transition-to-off
13ExecStart=/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"
14
15[Install]
16WantedBy=obmc-chassis-poweroff@%i.target
17