control: Install service files from repo
Install the appropriate service files based on which method of
configuration of fan control is used (JSON vs YAML). The YAML based
service files reflect what was installed by the recipe and JSON based
only requires the fan control service to be started at
multi-user.target.
Change-Id: I35575c6cb33aa7050530f0085db82b4cc6a92817
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/configure.ac b/configure.ac
index d0e8b50..fca81d5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -161,6 +161,7 @@
# Set config flag for runtime json usage
AC_DEFINE([CONTROL_USE_JSON], [1], [Fan control use runtime json configuration])
AC_MSG_NOTICE([Fan control json configuration usage enabled])
+ AC_CONFIG_FILES([control/service_files/json/phosphor-fan-control@.service])
],
[
# Add optional yaml file arguments
@@ -198,6 +199,9 @@
-z $FAN_ZONE_YAML_FILE \
-e $ZONE_EVENTS_YAML_FILE \
-c $ZONE_CONDITIONS_YAML_FILE"])
+
+ AC_CONFIG_FILES([control/service_files/yaml/phosphor-fan-control-init@.service
+ control/service_files/yaml/phosphor-fan-control@.service])
])
AC_CONFIG_FILES([control/Makefile])
])