Install phosphor-fan-control app and service
Also move the fan presence and fan control services
into obmc-power-chassis-on.target so they start as
soon as power comes on so it covers cases when the
boot stops at obmc-chassis-poweron.target.
Resolves openbmc/openbmc#1445
Change-Id: Idc271a2d770d85bc1a4d51d8d1473ca8d0c73889
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/common/recipes-phosphor/fans/phosphor-fan/phosphor-fan-presence-tach@.service b/common/recipes-phosphor/fans/phosphor-fan/phosphor-fan-presence-tach@.service
index 8324fdb..c91ed4e 100644
--- a/common/recipes-phosphor/fans/phosphor-fan/phosphor-fan-presence-tach@.service
+++ b/common/recipes-phosphor/fans/phosphor-fan/phosphor-fan-presence-tach@.service
@@ -2,11 +2,11 @@
Description=Phosphor Fan Presence Tach Daemon
Wants=obmc-power-on@%i.target
After=obmc-power-on@%i.target
-Conflicts=obmc-host-stop@%i.target
+Conflicts=obmc-chassis-poweroff@%i.target
[Service]
Restart=on-failure
ExecStart={sbindir}/phosphor-fan-presence-tach
[Install]
-RequiredBy=obmc-host-start@%i.target
+RequiredBy=obmc-chassis-poweron@%i.target