blob: a84b705161ab03470c5661771339afd8058acb70 [file] [log] [blame]
Andrew Geissler378fe112022-02-03 16:39:44 -06001[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
Andrew Geisslerb640ec42023-01-26 14:49:02 -07007After=phosphor-reset-chassis-on@%i.service
Andrew Geissler378fe112022-02-03 16:39:44 -06008Conflicts=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