1[Unit]
2Description=Check chassis power status
3Wants=obmc-power-start-pre@%i.target
4Before=obmc-power-start-pre@%i.target
5Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
6After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
7After=phosphor-reset-chassis-on@%i.service
8Conflicts=obmc-chassis-poweroff@%i.target
9ConditionPathExists=!/run/openbmc/chassis@%i-on
10
11[Service]
12Restart=no
13Type=oneshot
14RemainAfterExit=yes
15ExecStart=/usr/bin/phosphor-chassis-check-power-status --chassis %i
16
17[Install]
18RequiredBy=obmc-chassis-poweron@%i.target
19