blob: 67213495d57b559b218e3adb47fd29b135c67378 [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
Andrew Geissler08148282024-10-08 14:45:23 -040011RemainAfterExit=yes
Thang Tran74d7a552023-11-14 13:35:50 +070012SyslogIdentifier=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