monitor: Add service files to repo

This commit adds the fan monitor service files to the repo.

In YAML mode, the fan monitor init service and the fan monitor service
that starts at the fan control ready target will be installed.  In JSON
mode, just one service file will be installed, which will start at the
multi-user target.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ie1cebcbf8c138cb3b0ac44dd2eeb54458c7f68b5
diff --git a/monitor/Makefile.am b/monitor/Makefile.am
index 78b0b57..7c16680 100644
--- a/monitor/Makefile.am
+++ b/monitor/Makefile.am
@@ -4,6 +4,17 @@
 bin_PROGRAMS = \
 	phosphor-fan-monitor
 
+systemdsystemunit_DATA=
+
+if WANT_JSON
+systemdsystemunit_DATA += \
+	service_files/json/phosphor-fan-monitor@.service
+else
+systemdsystemunit_DATA += \
+	service_files/yaml/phosphor-fan-monitor@.service \
+	service_files/yaml/phosphor-fan-monitor-init@.service
+endif
+
 phosphor_fan_monitor_SOURCES = \
 	argument.cpp \
 	fan.cpp \