blob: 2891b3385116291c523b9a30a8f70f1f6a703e29 [file] [log] [blame]
Thang Tran74d7a552023-11-14 13:35:50 +07001[Unit]
2Description=Set Chassis state to transition to on
3Before=obmc-power-start@%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-poweroff@%i.target
7ConditionPathExists=!/run/openbmc/chassis@%i-on
8
9[Service]
10Restart=no
11Type=oneshot
Andrew Geissler08148282024-10-08 14:45:23 -040012RemainAfterExit=yes
Thang Tran74d7a552023-11-14 13:35:50 +070013SyslogIdentifier=phosphor-set-chassis-transition-to-on
14ExecStart=/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.TransitioningToOn"
15
16[Install]
17WantedBy=obmc-chassis-poweron@%i.target