blob: 9f5d1a683e8f034ec558ecfafb1170d7f92e9d9d [file] [log] [blame]
[Unit]
Description=Check Host%i status on BMC reset via CFAM reg
After=phosphor-reset-host-check@%i.service
Wants=obmc-host-reset-running@%i.target
Before=obmc-host-reset-running@%i.target
Wants=op-reset-chassis-on@%i.service
After=op-reset-chassis-on@%i.service
Conflicts=obmc-host-stop@%i.target
ConditionPathExists=/run/openbmc/chassis@%i-on
ConditionPathExists=!/run/openbmc/host@%i-on
[Service]
RemainAfterExit=yes
Type=oneshot
ExecStart=/usr/bin/openpower-proc-control checkHostRunning
[Install]
WantedBy=obmc-host-reset@%i.target