Install example psu-update@.service

The repo needs an example psu-update@.service, it was expected to be
installed by a bitbake recipe, but during the recipe review it turns
out that the repo is better to install a default one and it could be
overriden by a bbappend.

Move the psu-update@.service from vendor-example to services directory
and install it.

Tested: Verify the service is installed.

Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: I105b201972b32ca3d9e14878b92c9d038a41cbdb
diff --git a/services/meson.build b/services/meson.build
new file mode 100644
index 0000000..a35e9e9
--- /dev/null
+++ b/services/meson.build
@@ -0,0 +1,11 @@
+unit_files = [
+    'xyz.openbmc_project.Software.Psu.Updater.service',
+    'psu-update@.service'
+]
+
+foreach unit : unit_files
+configure_file(input: unit,
+               output: unit,
+               copy: true,
+               install_dir: servicedir)
+endforeach
diff --git a/services/psu-update@.service b/services/psu-update@.service
new file mode 100644
index 0000000..08e3c6e
--- /dev/null
+++ b/services/psu-update@.service
@@ -0,0 +1,17 @@
+# This service shall be started with two arguments:
+#  * The PSU inventory DBus object
+#  * The path of the PSU images
+# E.g.
+#  "psu-update@-xyz-openbmc_project-inventory-system-chassis-motherboard-powersupply0\x20-tmp-image-abcdefg.service"
+# expands to
+#  /bin/echo To update /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0 /tmp/image/abcdefg
+
+[Unit]
+Description=Update PSU %I
+
+[Service]
+Type=oneshot
+RemainAfterExit=no
+Environment="ARGS=%I"
+ExecStart=/bin/echo To update $ARGS
+ExecStart=/bin/false
diff --git a/services/xyz.openbmc_project.Software.Psu.Updater.service b/services/xyz.openbmc_project.Software.Psu.Updater.service
new file mode 100644
index 0000000..e1f708b
--- /dev/null
+++ b/services/xyz.openbmc_project.Software.Psu.Updater.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=OpenBMC PSU Code Manager
+Wants=xyz.openbmc_project.Software.Version.service
+After=xyz.openbmc_project.Software.Version.service
+Wants=obmc-mapper.target
+After=obmc-mapper.target
+
+[Service]
+ExecStart=/usr/bin/phosphor-psu-code-manager
+Restart=always
+Type=dbus
+BusName=xyz.openbmc_project.Software.Psu.Updater
+
+[Install]
+WantedBy=multi-user.target