blob: 2c7812d62ae8ef236fe64104b3ac83e0735df6c7 [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
7After=op-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