blob: 5d04020141ac335712b6b057f0e60715c3b66eae [file] [log] [blame]
Thang Tran74d7a552023-11-14 13:35:50 +07001[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
11SyslogIdentifier=phosphor-set-chassis-transition-to-off
12ExecStart=/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"
13
14[Install]
15WantedBy=obmc-chassis-poweroff@%i.target