Move service file to repo
This commit moves vpd service files to openpower-vpd-parser
repository and also install the service files in systemd
unit directory via meson.
Test works as expected.
Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
Change-Id: If0ee5f3b0cc4cc949f584d3f1cb234f31a9e0dc5
diff --git a/service_files/ibm-spi-vpd-parser@.service b/service_files/ibm-spi-vpd-parser@.service
new file mode 100644
index 0000000..eaecbbc
--- /dev/null
+++ b/service_files/ibm-spi-vpd-parser@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description= IPZ format SPI VPD Parser service for FRU %I
+Wants=mapper-wait@-xyz-openbmc_project-inventory.service
+After=mapper-wait@-xyz-openbmc_project-inventory.service
+Requires=system-vpd.service
+After=system-vpd.service
+Before=phosphor-discover-system-state@0.service
+
+[Service]
+ExecStart=/usr/bin/env ibm-read-vpd --file %f --driver at25
+SyslogIdentifier=ibm-spi-vpd-parser
+
+[Install]
+WantedBy=multi-user.target