blob: 7fd6d67dc871b253f95d7efc0e9df8f82c4daee0 [file] [log] [blame]
Andrew Geissler8e73da02021-06-23 15:43:21 -05001[Unit]
2Description=Check Host%i status on BMC reset via CFAM reg
Andrew Geissler971b36d2021-09-01 17:00:49 -05003Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service
4After=mapper-wait@-xyz-openbmc_project-state-host%i.service
Andrew Geissler8e73da02021-06-23 15:43:21 -05005Wants=obmc-host-reset-running@%i.target
6Before=obmc-host-reset-running@%i.target
7Wants=op-reset-chassis-on@%i.service
8After=op-reset-chassis-on@%i.service
9Conflicts=obmc-host-stop@%i.target
10ConditionPathExists=/run/openbmc/chassis@%i-on
11ConditionPathExists=!/run/openbmc/host@%i-on
12
13[Service]
14RemainAfterExit=yes
15Type=oneshot
16ExecStart=/usr/bin/openpower-proc-control checkHostRunning
17
18[Install]
19WantedBy=obmc-host-reset@%i.target