summaryrefslogtreecommitdiff
path: root/meta-ibm/recipes-phosphor/fans/phosphor-fan/witherspoon/phosphor-cooling-type@.service
diff options
context:
space:
mode:
authorjmbills <42755197+jmbills@users.noreply.github.com>2020-05-28 20:52:18 +0300
committerGitHub <noreply@github.com>2020-05-28 20:52:18 +0300
commit7d36a6ec8b71fca145753cf8162199b2ab292d4c (patch)
tree0b476a7d19b66d16a1ab30a02c2ea0c63d6730e0 /meta-ibm/recipes-phosphor/fans/phosphor-fan/witherspoon/phosphor-cooling-type@.service
parentca9404ef3510987b76c87ad107cc9df32076b1ba (diff)
parent0ccb93d91de41b7db333efccc1aa8d03db1ef63f (diff)
downloadopenbmc-7d36a6ec8b71fca145753cf8162199b2ab292d4c.tar.xz
Merge pull request #41 from Intel-BMC/update
Update
Diffstat (limited to 'meta-ibm/recipes-phosphor/fans/phosphor-fan/witherspoon/phosphor-cooling-type@.service')
-rw-r--r--meta-ibm/recipes-phosphor/fans/phosphor-fan/witherspoon/phosphor-cooling-type@.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-ibm/recipes-phosphor/fans/phosphor-fan/witherspoon/phosphor-cooling-type@.service b/meta-ibm/recipes-phosphor/fans/phosphor-fan/witherspoon/phosphor-cooling-type@.service
new file mode 100644
index 000000000..c1f5ae293
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/fans/phosphor-fan/witherspoon/phosphor-cooling-type@.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Phosphor Cooling Type
+Wants=mapper-wait@-xyz-openbmc_project-inventory.service
+After=mapper-wait@-xyz-openbmc_project-inventory.service
+ConditionPathExists={envfiledir}/obmc/phosphor-fan/phosphor-cooling-type-%i.conf
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+EnvironmentFile={envfiledir}/obmc/phosphor-fan/phosphor-cooling-type-%i.conf
+ExecStart=/usr/bin/env phosphor-cooling-type ${{OBJPATH}} ${{AIR}} ${{WATER}} ${{DEVICE}} ${{CODE}}
+SyslogIdentifier=phosphor-cooling-type
+
+[Install]
+RequiredBy=multi-user.target