cfam-reset: do not run if chassis power on

Due to a variety of reasons, the op-cfam-reset.service was put in the
obmc-chassis-poweron@.target. To handle situations where the BMC is
reset when the host is up, it's important this service not be executed
if the host is running. Issuing a CFAM reset while the host is running
will cause it to crash.

Change the service directive to look at the chassis power file to know
whether it should run or not.

Tested:
- Verified on a rainier system that host stayed up and running through a
  BMC reset with this change.

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I103defecf113e6cc8f7eba4dd9d7c47519621015
1 file changed